Created
May 11, 2022 16:09
-
-
Save vlad-ds/8544b641cad97b04db45b00de7a901ea to your computer and use it in GitHub Desktop.
BigQuery SQL 1
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 term, | |
rank, | |
AVG(score) AS avg_score | |
FROM `bigquery-public-data.google_trends.international_top_terms` | |
WHERE refresh_date = DATE_SUB(CURRENT_DATE, INTERVAL 1 DAY) | |
AND country_name = "United Kingdom" | |
GROUP BY term, rank | |
ORDER BY rank ASC; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment