Answer the question
In order to leave comments, you need to log in
How to add condition to SQL query?
Query displays new videos
SELECT A.*,B.UID,B.username
FROM video A, signup B
WHERE A.UID=B.UID AND A.active ='1' AND A.channel IN ('9')
ORDER BY A.VID desc LIMIT 10
restored='yes' AND active_date = CURDATE()
Answer the question
In order to leave comments, you need to log in
FROM video A
LEFT/INNER JOIN signup B
WHERE A.UID=B.UID
AND (A.active ='1' OR restored='yes') AND
A.channel
IN ('9')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question