I have a Products Table which has a Status column . The Status defines whether the Item is damaged ,repaired,inMaintainance etc
eg:
Prd Id Status
1 damaged
1 Repaired
2 damaged
3 inMaintainance
I was trying to build a query that would give me all the Parts that are damaged but 'not repaired'
select * from products where Status='damaged' And Status not in 'Repaired'
This would give me
Prd Id Status
1 damaged
2 damaged
But I should not get Product Id =1 as Technically the product has been sent to Repair. The results should be
Prd Id Status
2 damaged
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Most Valuable Expert award recognizes technology experts who passionately share their knowledge with the community, demonstrate the core values of this platform, and go the extra mile in all aspects of their contributions. This award is based off of nominations by EE users and experts. Multiple MVEs may be awarded each year.
The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.