Hello all;
If I have the following data:
ID Value
1 A
1 B
2 A
2 B
2 C
3 A
3 B
How would I go about only selecting the ID's that have only have the combination of values A & B - so my select query woud return:
ID Value
1 A
1 B
3 A
3 B
ID 2 is not returned because it also has a value of C.
I have tried:
SELECT table.ID, table.Value,
FROM table
WHERE (((table.Value) ="A")) AND (((table.value) ="B"))
but no luck.
Thanks in advance!
If I have the following data:
ID Value
1 A
1 B
2 A
2 B
2 C
3 A
3 B
How would I go about only selecting the ID's that have only have the combination of values A & B - so my select query woud return:
ID Value
1 A
1 B
3 A
3 B
ID 2 is not returned because it also has a value of C.
I have tried:
SELECT table.ID, table.Value,
FROM table
WHERE (((table.Value) ="A")) AND (((table.value) ="B"))
but no luck.
Thanks in advance!
Comment