how to write SQL ..short way
Hello,
I need to build a SQL..i know the long way...need a short way
itemid Routeto
1 NB
1 IP
1 IQ
4 NB
4 IP
4 IQ
5 NB
5 JY
6 NB
6 AB
2 NB
3 IS
.
i want only those itemid which had routeto = NB and never had routeto = IQ or IP i.e 5 ,6 , 2
so i dont want 1,4 to ever come in the resultset!
Thks in advance
|