
Before you begin
- Labs create a Google Cloud project and resources for a fixed time
- Labs have a time limit and no pause feature. If you end the lab, you'll have to restart from the beginning.
- On the top left of your screen, click Start lab to begin
Creating a dataset to store new tables
/ 10
Ingest a new Dataset from a CSV
/ 10
Ingest a dataset from google cloud storage
/ 10
Create tables from other tables with DDL
/ 10
BigQuery is Google's fully managed, NoOps, low cost analytics database. With BigQuery you can query terabytes and terabytes of data without having any infrastructure to manage or needing a database administrator. BigQuery uses SQL and can take advantage of the pay-as-you-go model. BigQuery allows you to focus on analyzing data to find meaningful insights.
In this lab you will ingest subsets of the NYC taxi trips data into tables inside of BigQuery.
For each lab, you get a new Google Cloud project and set of resources for a fixed time at no cost.
Sign in to Qwiklabs using an incognito window.
Note the lab's access time (for example, 1:15:00
), and make sure you can finish within that time.
There is no pause feature. You can restart if needed, but you have to start at the beginning.
When ready, click Start lab.
Note your lab credentials (Username and Password). You will use them to sign in to the Google Cloud Console.
Click Open Google Console.
Click Use another account and copy/paste credentials for this lab into the prompts.
If you use other credentials, you'll receive errors or incur charges.
Accept the terms and skip the recovery resource page.
The Welcome to BigQuery in the Cloud Console message box opens. This message box provides a link to the quickstart guide and lists UI updates.
To create a dataset, click on the View actions icon (the three vertical dots) next to your project ID and select Create dataset.
Next, name your Dataset ID nyctaxi and leave all other options at their default values, and then click Create dataset.
You'll now see the nyctaxi dataset under your project name.
Click Check my progress to verify the objective.
In this section, you will load a local CSV into a BigQuery table.
Download a subset of the NYC taxi 2018 trips data locally onto your computer from this link.
In the BigQuery Console, Select the nyctaxi dataset then click Create Table
Specify the below table options:
Source:
Destination:
Schema:
Advanced Options
Click Create Table.
Select the 2018trips table and view details:
You have successfully loaded a CSV file into a new BigQuery table.
Next, practice with a basic query on the 2018trips table.
Click Check my progress to verify the objective.
Now, let's try to load another subset of the same 2018 trip data that is available on Cloud Storage. And this time, let's use the CLI tool to do it.
When the load job is complete, you will get a confirmation on the screen.
Back on your BigQuery console, select the 2018trips table and view details. Confirm that the row count has now almost doubled.
You may want to run the same query like earlier to see if the top 5 most expensive trips have changed.
Click Check my progress to verify the objective.
The 2018trips table now has trips from throughout the year. What if you were only interested in January trips? For the purpose of this lab, we will keep it simple and focus only on pickup date and time. Let's use DDL to extract this data and store it in another table
Click Check my progress to verify the objective.
You've successfully created a new dataset and ingested data into BigQuery from CSV, Google Cloud Storage, and other BigQuery tables.
When you have completed your lab, click End Lab. Google Cloud Skills Boost removes the resources you’ve used and cleans the account for you.
You will be given an opportunity to rate the lab experience. Select the applicable number of stars, type a comment, and then click Submit.
The number of stars indicates the following:
You can close the dialog box if you don't want to provide feedback.
For feedback, suggestions, or corrections, please use the Support tab.
Manual Last Updated: July 27, 2022
Lab Last Tested: July 15, 2022
Copyright 2022 Google LLC All rights reserved. Google and the Google logo are trademarks of Google LLC. All other company and product names may be trademarks of the respective companies with which they are associated.
This content is not currently available
We will notify you via email when it becomes available
Great!
We will contact you via email if it becomes available
One lab at a time
Confirm to end all existing labs and start this one