
with the above query, I get those entries with Status=10,20 and 90.
I want to check for entries which have Status=90 alone, and which DO NOT HAVE Status=10 or Status=20. I did below, but seem not correct.



Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Iftikar HussainPosted Aug 2, 2013, 1:38 AM
try like this
Regards,
Iftikar
TAN WhoAMIPosted Aug 2, 2013, 2:24 AM
TAN WhoAMIPosted Aug 2, 2013, 1:58 AM
Iftikar HussainPosted Aug 2, 2013, 1:49 AM
ON
Regards,
Iftikar
Iftikar HussainPosted Aug 2, 2013, 1:47 AM
Regards,
Iftikar
Posted Aug 2, 2013, 1:44 AM
TAN WhoAMIPosted Aug 2, 2013, 1:43 AM
Posted Aug 2, 2013, 1:36 AM
TAN WhoAMIPosted Aug 2, 2013, 1:35 AM
what is t.PoId?
Iftikar HussainPosted Aug 2, 2013, 1:28 AM
Regards,
Iftikar
TAN WhoAMIPosted Aug 2, 2013, 1:22 AM
Posted Aug 2, 2013, 12:52 AM
It looks like somewhere the records are duplicating. Make sure, your join conditions are correct and it is not forming any duplicate records.
If possible can be post the query as text instead of screenshot?
Iftikar HussainPosted Aug 2, 2013, 12:49 AM
Regards,
Iftikar
TAN WhoAMIPosted Aug 2, 2013, 12:19 AM
but 923-0020 does contain Status=10,20, see below:
I want to extract out those entries with Status = 90 alone, and does not have Status=10 or Status=20.
Iftikar HussainPosted Aug 1, 2013, 11:49 PM
Try like this
select *from table_name where TRIM(PHSTAT)='90'
Regards,
Iftikar