skip to Main Content

MySQL AND as optional

AND t1.Team IN (SELECT Team FROM t2 WHERE t3.ID = t2.ID) How can I make above AND as optional, if the sub-query does not have any results, do not even consider AND t1.Team IN (""). Something like this does not…

VIEW QUESTION
Back To Top
Search