PID VALUE
3 1
4 3
1 9
1 3
How to select row(s) that has both values 3 and 9? I tried
select PID from table where VALUE = 3 and VALUE = 9
So that i get something like below, instead i get an empty set.
PID
1
PID 4 should not be included in the result because it do not have VALUE 9