Last active
May 10, 2020 08:52
-
-
Save n1n9-jp/2ef6bd0a6154ddd15de7399a62db2fb4 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
#【BigQuery】CREATE文を使えるの知ってた?SQLでテーブル作成| 開発者ブログ | 株式会社アイソルート https://www.isoroot.jp/blog/1651/ | |
#Google BigQuery の SQL文tips - 備忘録 blog http://sharply.hatenablog.com/entry/2019/04/15/000641 | |
# example1 | |
SELECT count(name) | |
FROM [プロジェクトID:tokyo_companies.company] | |
WHERE city = "千代田区" | |
# example2 | |
SELECT city, count(company_number) AS company_number | |
FROM [プロジェクトID:tokyo_companies.company] | |
GROUP BY city | |
ORDER BY company_number DESC | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment