
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
Create a new dataset to store tables
/ 25
Ingest a new Dataset from a CSV
/ 25
Ingest data from Google Cloud Storage
/ 25
Ingest a new dataset from a Google Spreadsheet
/ 25
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.
The dataset you'll use is an ecommerce dataset that has millions of Google Analytics records for the Google Merchandise Store loaded into BigQuery. You have a copy of that dataset for this lab and will explore the available fields and row for insights.
In this lab, you will ingest several types of datasets into tables inside of BigQuery.
Read these instructions. Labs are timed and you cannot pause them. The timer, which starts when you click Start Lab, shows how long Google Cloud resources are made available to you.
This hands-on lab lets you do the lab activities in a real cloud environment, not in a simulation or demo environment. It does so by giving you new, temporary credentials you use to sign in and access Google Cloud for the duration of the lab.
To complete this lab, you need:
Click the Start Lab button. If you need to pay for the lab, a dialog opens for you to select your payment method. On the left is the Lab Details pane with the following:
Click Open Google Cloud console (or right-click and select Open Link in Incognito Window if you are running the Chrome browser).
The lab spins up resources, and then opens another tab that shows the Sign in page.
Tip: Arrange the tabs in separate windows, side-by-side.
If necessary, copy the Username below and paste it into the Sign in dialog.
You can also find the Username in the Lab Details pane.
Click Next.
Copy the Password below and paste it into the Welcome dialog.
You can also find the Password in the Lab Details pane.
Click Next.
Click through the subsequent pages:
After a few moments, the Google Cloud console opens in this tab.
The Welcome to BigQuery in the Cloud Console message box opens. This message box provides a link to the quickstart guide and the release notes.
The BigQuery console opens.
Set the Dataset ID to ecommerce
. Leave the other fields at their default values.
Click CREATE DATASET.
You'll now see the ecommerce dataset under your project name.
Click Check my progress to verify the objective.
Scenario: Your marketing team is looking to you to help guide them with what products should be up for promotions based on inventory stock levels. They have also asked how each product is trending in customer sentiment based on the product reviews.
Your existing ecommerce transactional dataset does not have inventory stock levels or product review data in it, but your operations and marketing teams have provided you with new datasets for you to analyze.
Here is how you get started:
Download the following dataset locally onto your computer: Product stock level dataset. (Open and download the file in normal window)
To create a table, click on the View actions icon next to the ecommerce dataset and select Open.
Click Create Table.
Specify the below table options:
Source:
select the file you downloaded locally earlier
Destination:
Leave other settings at their default value.
Schema:
Advanced Options:
You should now see the products table below the ecommerce dataset.
Click Check my progress to verify the objective.
SKU | name | orderedQuantity | stockLevel | restockingLeadTime |
---|---|---|---|---|
GGOEGDHQ014899 | 20 oz Stainless Steel Insulated Tumbler | 499 | 652 | 2 |
GGOEGOAB022499 | Satin Black Ballpoint Pen | 403 | 477 | 2 |
GGOEYHPB072210 | Twill Cap | 1429 | 1997 | 2 |
GGOEGEVB071799 | Pocket Bluetooth Speaker | 214 | 246 | 2 |
You have successfully loaded a CSV file into a new BigQuery table.
Next, practice with a basic query to gain insights from the new products table.
Create a table by clicking on the View actions icon next to the ecommerce dataset, then click Create Table.
Specify the below table options:
Source:
Destination:
Leave all other settings as default.
Schema:
Advanced Options:
Does it work? No
Click GO TO JOB when the error message appears, then click the Repeat load job button.
In the Create table form, click on Advanced options and in the Write preference dropdown menu, select Overwrite table.
Now click Create Table.
Confirm the table was executed successfully.
Click Check my progress to verify the objective.
Click +COMPOSE NEW QUERY ().
Execute this next query to show which products are in the greatest restocking need based on inventory turnover and how quickly they can be resupplied:
ecommerce.products
instead of project_id.ecommerce.products
, BigQuery will assume the current project.Scenario: You want to provide your supply chain management team with a way to notate whether or not they have contacted the supplier to reorder inventory, and to make any notes on the items. You decide on using a Google Spreadsheet for a quick survey.
Now you'll create it:
In Query results, select SAVE RESULTS, choose Google Sheets from the dropdown.
A popup will appear with a link to Open the spreadsheet, select Open.
In your spreadsheet, in column G add a new field titled comments and for the first product row type new shipment on the way
then press Enter.
In Google Sheets, select Share and click Copy link from get link.
Return to your BigQuery tab.
Click on the View actions icon next to the ecommerce dataset, then click Create Table.
Specify the below table options:
Source:
put-your-spreadsheet-url-here
Destination:
Schema:
Advanced options:
Click Check my progress to verify the objective.
Add the below query then click RUN:
Wait for the query to execute. You will see that the new comments field is now returned.
SKU |
name |
orderedQuantity |
stockLevel |
restockingLeadTime |
ratio |
comments |
GGOENEBB078899 |
Cam Indoor Security Camera - USA |
2139 |
2615 |
42 |
0.8179732314 |
new shipment on the way |
Navigate back to your Google Spreadsheet tab.
Type in more comments in the Comments field.
Navigate back to BigQuery and execute the query again by clicking RUN.
Confirm the new data properly shows in the results.
You have successfully created an external table connection into BigQuery from Google Spreadsheets.
Linking external tables to BigQuery (e.g. Google Spreadsheets or directly from Cloud Storage) has several limitations. Two of the most significant are:
You've successfully created a new dataset and ingested new external data sources into BigQuery from CSV, Cloud Storage, and Google Drive.
Already have a Google Analytics account and want to query your own datasets in BigQuery? Follow this export guide.
...helps you make the most of Google Cloud technologies. Our classes include technical skills and best practices to help you get up to speed quickly and continue your learning journey. We offer fundamental to advanced level training, with on-demand, live, and virtual options to suit your busy schedule. Certifications help you validate and prove your skill and expertise in Google Cloud technologies.
Manual Last Updated November 11, 2024
Lab Last Tested Novermber 11, 2024
Copyright 2025 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