Created
April 26, 2016 19:02
-
-
Save jdwyah/f89968af747a251638bec8c245bfa547 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
date_trunc('day', page.timestamp) | |
count(distinct page.anonymous_id), | |
count(distinct conversions.user_id) | |
FROM pages page | |
JOIN identifies ids | |
LEFT JOIN conversions ON conversions.user_id = identifies.user_id | |
WHERE | |
ids.anonymous_id = page.anonymous_id | |
AND completes.user_id = ids.user_id | |
AND page.name = 'landing-page' | |
GROUP BY 1,2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment