can we use something IN and something NOT in mysql
Posted
by JPro
on Stack Overflow
See other posts from Stack Overflow
or by JPro
Published on 2010-05-11T10:13:38Z
Indexed on
2010/05/11
10:24 UTC
Read the original article
Hit count: 364
mysql
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?
© Stack Overflow or respective owner