Created
March 16, 2025 09:06
-
-
Save kamarton/d291d9f10f69f0bc1a7baef69f1aedb3 to your computer and use it in GitHub Desktop.
Bigquery cli example json output (GCP)
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
#!/usr/bin/env bash | |
bq query \ | |
--nouse_legacy_sql \ | |
--format=prettyjson \ | |
'SELECT city, count(*) as g_count FROM `bigquery-public-data.fda_drug.drug_enforcement` WHERE status="Terminated" GROUP BY status, city HAVING g_count > 100 ORDER BY g_count DESC' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment