Created
June 16, 2018 21:13
-
-
Save traviskaufman/e6f96f778eaa893dd16c5da5fd433d61 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
%%bq --name hn_daily_comment_counts | |
SELECT | |
TIMESTAMP_TRUNC(time_ts, DAY) as day, | |
COUNT(0) as comment_count | |
FROM | |
`bigquery-public-data.hacker_news.comments` | |
GROUP BY | |
day | |
ORDER BY | |
day ASC; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment