Last active
August 13, 2018 17:23
-
-
Save rex-lin/fb866f35039d53b846bae6612e53d30f to your computer and use it in GitHub Desktop.
Featured Creators
This file contains hidden or 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 created_by as user_id, b.username as username, b.name as name, count(1) as feature_count, max(a.date_created) as last_feature | |
| from pf.dim_flipagram a | |
| join pf.dim_user b on a.created_by = b.id | |
| where a.date_created >= '2017-01-01' | |
| and featured = 'True' | |
| group by 1,2,3 | |
| order by 4 desc | |
| limit 1000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment