└── README.md /README.md: -------------------------------------------------------------------------------- 1 | # Introduction to Google BigQuery 2 | This file contains text you can copy and paste for the examples in Cloud Academy's _Introduction to Google BigQuery_ course. 3 | 4 | ### Running a Query 5 | ``` 6 | SELECT * 7 | FROM 8 | `bigquery-public-data.usa_names.usa_1910_2013` 9 | ORDER BY number DESC LIMIT 10 10 | ``` 11 | ``` 12 | SELECT * 13 | FROM 14 | `bigquery-public-data.usa_names.usa_1910_2013` 15 | WHERE gender = 'F' 16 | ORDER BY number DESC LIMIT 10 17 | ``` 18 | 19 | ### Loading Data 20 | [Baby names data](https://www.ssa.gov/OACT/babynames/names.zip) 21 | [Jeopardy data](https://datascienceplus.com/wp-content/uploads/2015/08/JEOPARDY_CSV.csv) 22 | [Google Cloud SDK installation instructions](https://cloud.google.com/sdk/docs/install) 23 | ``` 24 | bq mk public 25 | bq load --autodetect public.jeopardy JEOPARDY_CSV.csv 26 | ``` 27 | 28 | ### Exporting Data 29 | ``` 30 | bq extract 31 | ``` 32 | ``` 33 | gs://ca-example/games*.csv.gz 34 | ``` 35 | 36 | ### Conclusion 37 | [BigQuery documentation](https://cloud.google.com/bigquery/docs) 38 | support@cloudacademy.com 39 | --------------------------------------------------------------------------------