Skip to content

Instantly share code, notes, and snippets.

@eit
Created May 24, 2013
Embed
What would you like to do?
SELECT user_id
FROM `facebook_active_user_201303`
WHERE page_id = '145649977189'
AND startdate = '2013-03-01'
AND period = 'month'
AND user_id
IN
(
SELECT user_id
FROM `facebook_active_user_201303`
WHERE page_id = '152341009257'
AND startdate = '2013-03-01'
AND period = 'month'
)
SELECT user_id
FROM `facebook_active_user_201303`
WHERE (
page_id = '145649977189'
OR page_id = '152341009257'
)
AND startdate = '2013-03-01'
AND period = 'month'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment