I have a problem. I don't know how to solve it.
I have a Datatable like:
| bookingCode | status |
|---|---|
| ABC | NEW |
| ABC | CANCELED |
| DEF | CANCELED |
If I try to select bookingCode where status = 'CANCELED' I will get ABC and DEF as result. But ABC has a NEW Order. I want only CANCELED where is only one bookingCode. The result has to be only DEF.
How can I solve this problem?