Created
June 2, 2019 05:11
-
-
Save guerbai/e560b8adaf98ba416657af83b859e6c7 to your computer and use it in GitHub Desktop.
sql with example #BigQuery
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
WITH time AS | |
( | |
SELECT DATE(block_timestamp) AS trans_date | |
FROM `bigquery-public-data.crypto_bitcoin.transactions` | |
) | |
SELECT COUNT(1) AS transactions, | |
trans_date | |
FROM time | |
GROUP BY trans_date | |
ORDER BY trans_date |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment