I have a table that has:
Name Grade
John A
John B
John C
Eric C
Seth B
Seth A
Tim A
I want to retun only Name that have an 'A' but no B or C
so in the above only Tim would be returned..
I tried
Select * from tblTable
where Grade = 'A' and Grade not in ('B', 'C') and i am still not getting the results back needed.
Name Grade
John A
John B
John C
Eric C
Seth B
Seth A
Tim A
I want to retun only Name that have an 'A' but no B or C
so in the above only Tim would be returned..
I tried
Select * from tblTable
where Grade = 'A' and Grade not in ('B', 'C') and i am still not getting the results back needed.