I have the following table Product :
ProductID |ClientID |Status
--|--|--
100 |12 |Available
100 |13 |In process
100 |14 |Not yet
I want to get only the products with only with Not Yet status
and not other ones
I have the following table Product :
ProductID |ClientID |Status
--|--|--
100 |12 |Available
100 |13 |In process
100 |14 |Not yet
I want to get only the products with only with Not Yet status
and not other ones
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.
Amira BedhiafiPosted Jan 29, 2022, 1:44 PM
SELECT * FROM ProductTableAS A WHERE NOT EXISTS( SELECT * FROM AS B WHERE A.ProductID=B.ProductIDID AND Status NOT LIKE 'Not yet' )
Muhammad Imran AnsariPosted Jan 29, 2022, 8:20 PM