Stay organized with collections Save and categorize content based on your preferences.
Load and query data with the Google Cloud consoleLearn how to use the Google Cloud console to create a dataset, load sample data into a BigQuery table, and query tables.
To follow step-by-step guidance for this task directly in the Google Cloud console, click Guide me:
Before you begin Before you can explore BigQuery, you must sign in to Google Cloud console and create a project. If you don't enable billing in your project, then all of the data you upload will be in the BigQuery sandbox. The sandbox makes it possible for you to learn BigQuery at no charge while working with a limited set of BigQuery features. For more information, see Enable the BigQuery sandbox.In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Note: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Note: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.Use the Google Cloud console to create a dataset that stores the data.
babynames
.us
multi-region location. For simplicity, store your dataset in the same location.For more information about the dataset, see the Social Security Administration's dataset information page.
Download the US Social Security Administration's dataset by opening the following URL in a new browser tab:
https://www.ssa.gov/OACT/babynames/names.zip
Extract the file.
For more information about the dataset schema, see the zip file's NationalReadMe.pdf
file.
To see what the data looks like, open the yob2014.txt
file. This file contains comma-separated values for name, assigned sex at birth, and number of children with that name. The file has no header row.
Note the location of the yob2014.txt
file so that you can find it later.
Next, load the data into a new table.
Unless otherwise indicated, use the default values for all settings.
yob2014.txt
file, and click Open.names_2014
.name:string,assigned_sex_at_birth:string,count:integer
Click Create table .
Wait for BigQuery to create the table and load the data. When BigQuery finishes loading the data, expand the Personal history and Project history pane to review the job details.
To preview the table data, follow these steps:
babynames
dataset, and then select the names_2014
table.Next, query the table. The process is identical to the previous example, except that this time, you're querying your table instead of a public table.
SELECT
name,
count
FROM
`babynames.names_2014`
WHERE
assigned_sex_at_birth = 'M'
ORDER BY
count DESC
LIMIT
5;
You have successfully queried a table in a public dataset and then loaded your sample data into BigQuery using the Google Cloud console.
Clean upTo avoid incurring charges to your Google Cloud account for the resources used on this page, follow these steps.
babynames
dataset that you created.delete
and then click Delete.Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["This guide demonstrates how to use the Google Cloud console to create a BigQuery dataset, using the \"babynames\" dataset as an example."],["You will learn how to download a sample dataset from the US Social Security Administration, containing popular baby names, and then load it into a BigQuery table."],["The process includes creating a table named \"names_2014,\" defining its schema, and loading the downloaded CSV data into it."],["The guide illustrates how to preview the data within the newly created table and subsequently run a query to retrieve the top five male baby names from the year 2014."],["Instructions are provided on how to clean up the resources created in the tutorial to avoid incurring additional charges."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4