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
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.
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.
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.
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 product stock level dataset locally onto your computer.
Select the ecommerce dataset; then click Create Table.
Source:
select the file you downloaded locally earlier
Destination:
Table name: products
Leave other settings at their default value.
Schema:
Tip: Not seeing the checkbox? Ensure the file format is CSV and not Avro.
Advanced Options:
You should now see the products table below the ecommerce dataset.
|
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 in a CSV file into a new BigQuery table.
Next, practice with a basic query to gain insights from the new products table.
Select the ecommerce dataset and click Create Table.
Specify the below table options:
Source:
Destination:
Table name: products
Leave all other settings as default.
Schema:
Advanced Options:
Does it work? No
Click Cancel to close the message, then click Yes,quit in the Create table dialog.
Click on the upward arrow in the bottom right and click, Project history and select the error message.
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.
Select 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:
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.
In Google Sheets, select Share and Get Shareable Link then copy the link.
Return to your BigQuery tab.
Click on the ecommerce dataset, then Create Table.
Specify the these table options:
Source:
put-your-spreadsheet-url-here
Destination:
Schema:
Advanced options:
Click Compose New Query.
Add the below query then 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 Google 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, Google Cloud Storage, and Google Drive.
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.
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