google-big-queryHow can I use the Google BigQuery free tier?
The Google BigQuery free tier allows users to query up to 1TB of data per month at no cost. To use the free tier, users must have a Google Cloud Platform account and must enable billing.
To start using BigQuery free tier, users can use the bq command line tool. An example of how to query data using the bq command line tool is as follows:
bq query --use_legacy_sql=false 'SELECT * FROM [bigquery-public-data:samples.shakespeare] LIMIT 10'
The output of the query will be the first 10 lines of Shakespeare's writings:
+----+------------+---------+---------+
| id | word | word_id | volume |
+----+------------+---------+---------+
| 1 | O | 8462 | 26 |
| 2 | all | 8463 | 26 |
| 3 | men | 8464 | 26 |
| 4 | should | 8465 | 26 |
| 5 | be | 8466 | 26 |
| 6 | created | 8467 | 26 |
| 7 | equal | 8468 | 26 |
| 8 | . | 8469 | 26 |
| 9 | My | 8470 | 26 |
| 10 | excellent | 8471 | 26 |
+----+------------+---------+---------+
Code explanation
bq query: runs a query on BigQuery--use_legacy_sql=false: uses standard SQL instead of legacy SQLSELECT * FROM [bigquery-public-data:samples.shakespeare]: selects all columns from theshakespearetable in thesamplesdataset in thebigquery-public-dataprojectLIMIT 10: limits the number of results to 10
For more information on using the Google BigQuery free tier, please refer to the Google Cloud Platform Documentation.
More of Google Big Query
- How can I use Google BigQuery on a Windows system?
- How do Google BigQuery and MySQL compare in terms of performance and scalability?
- How do I use a Google BigQuery URL?
- How can I use Google Big Query to count the number of zeros in a given dataset?
- How do I use wildcards in Google BigQuery?
- How can I use Google Big Query to integrate with Zephyr?
- How do I use Google Big Query to zip files?
- ¿Cuáles son las ventajas y desventajas de usar Google BigQuery?
- How do I query Google BigQuery using XML?
- How can I use Google Big Query to process XML data?
See more codes...