BigQuery

Serverless Data Warehouse

BigQuery analyses terabytes with standard SQL in seconds, without servers. You pay for storage and for the data each query scans (or a fixed capacity).

Example

Query a public dataset from the command line:

bq query --use_legacy_sql=false '
SELECT name, SUM(number) AS total
FROM `bigquery-public-data.usa_names.usa_1910_current`
WHERE year >= 2000
GROUP BY name
ORDER BY total DESC
LIMIT 3'

Example output

+----------+--------+
|   name   | total  |
+----------+--------+
| Jacob    | 315227 |
| Michael  | 300940 |
| Emma     | 293486 |
+----------+--------+

Tip: Select only the columns you need and partition/cluster big tables: BigQuery charges by bytes scanned.