https://github.com/cloudacademy/bigquery-intro
https://github.com/cloudacademy/bigquery-intro
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cloudacademy/bigquery-intro
- Owner: cloudacademy
- Created: 2021-01-13T23:07:53.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T20:32:07.000Z (over 2 years ago)
- Last Synced: 2025-01-13T06:08:14.082Z (over 1 year ago)
- Size: 5.86 KB
- Stars: 10
- Watchers: 4
- Forks: 19
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Introduction to Google BigQuery
This file contains text you can copy and paste for the examples in Cloud Academy's _Introduction to Google BigQuery_ course.
### Running a Query
```
SELECT *
FROM
`bigquery-public-data.usa_names.usa_1910_2013`
ORDER BY number DESC LIMIT 10
```
```
SELECT *
FROM
`bigquery-public-data.usa_names.usa_1910_2013`
WHERE gender = 'F'
ORDER BY number DESC LIMIT 10
```
### Loading Data
[Baby names data](https://www.ssa.gov/OACT/babynames/names.zip)
[Jeopardy data](https://datascienceplus.com/wp-content/uploads/2015/08/JEOPARDY_CSV.csv)
[Google Cloud SDK installation instructions](https://cloud.google.com/sdk/docs/install)
```
bq mk public
bq load --autodetect public.jeopardy JEOPARDY_CSV.csv
```
### Exporting Data
```
bq extract
```
```
gs://ca-example/games*.csv.gz
```
### Conclusion
[BigQuery documentation](https://cloud.google.com/bigquery/docs)
support@cloudacademy.com