I need to do some Database sorting and filtering: my DB looks like this:
ID | No | Status |
---|---|---|
32 | 98765 | 0 |
32 | 0 | 2 |
70 | 43210 | 0 |
70 | 0 | 2 |
The final output needs to be:
ID | No | Status |
---|---|---|
32 | 98765 | 0 |
70 | 43210 | 0 |
If an ID with the same value is found (if a singular value is found, it is not displayed), select only the one with status = 0 and no != 0 will be selected and displayed.
Thanks in advance!