Hi,
I have a table with among others columns 'sGroup', 'sID'.
How can I search the table on something but instead of returning a row that matches the query, return the row that has the same value for sGroup value 0 for column 'sID'.
example:
row 1:
sGroup = 12
sID = 0
row 2:
sGroup = 12
sID = 4
row 2 matches the search criteria on other columns but has value 4 in column sID. This row should not be included in the results but instead row 1 should be included because it has the same sGroup value and value 0 for column sID.
I know this can be regarded as bad database design but is it possible to make a query that returns the correct rows?
Thanks,
Raoul