Lets say I have a table that is like this
x y
10 5
10 8
10 12
11 9
11 14
11 12
14 12
14 5
14 11
I need to return all the x group that has the same value if y = 5
So I would need a query that would return me the x group that has the value 10 or 14.
Query:
select x, y from table ...
Should return me something like this :
x y
10 5
10 8
10 12
14 12
14 5
14 11
1 Answer