can we use something IN and something NOT in mysql
- by JPro
I want to know if I can use something like this : If yes, then what will be order ? I dont seem to understand quite well the explain plan of mysql
Select * from results where TestCase NOT IN (select TestCase from results where Verdict <> 'PASS' and StartTime > DATE_SUB(NOW(), INTERVAL 2 MONTHS)) and TestCase IN (Select TestCase from testcases where Type = 'NONOS')
EDIT : Also how can I order by StartTime to display the latest first?