userid pageid
123 100
123 101
456 101
567 100
I want to return all the userid with pageid 100 AND 101, should give me 123 only. This is probably super easy but I can't figure it out! I tried:
SELECT userid
FROM table_name
WHERE pageid=100 AND pageid=101
But it gives me 0 results. Any help please