#BigQuery #SQL #publicdata
Open Google BigQuery Console and in the Explorer pane, select the Add + button.

In the pop-up window select Public dataset:

Search a subject in the Marketplace field, e.g. “job”, to see US job related dataset

Select a dataset:

Select the View dataset button, BigQuery opens Public dataset in Explorer pane

Type your search term in the search text field, e.g. employment, to see the available tables:

Select the first table to see the employment hours earnings table structure.

Click on Preview to see the table content:

Select query in new tab:

Write the following query to see the average value for these hour earnings
SELECT AVG(value) FROM `bigquery-public-data.bls.employment_hours_earnings` LIMIT 1000

This result can be validated with the related xls file

Leave a Reply