Hi all,
I'm still pretty inexperienced with SQL so this might be a dumb or easy question, but here goes....
Is it possible to return a value from a query when the result is based over multiple rows?
For example, I have a table (TABLE_A) containing the following rows:
Code:
ID VALUE
1 6
1 7
2 6
2 8
3 7
3 9
All I know for my select is the VALUE must contain both 6 AND 7.
So, I need a query that will return ID 1 only as that is the only one that has a value of both 6 and 7.
Is this possible?