
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
Writing queries
/ 20
Query 1
/ 20
Query 2
/ 20
Query 3
/ 20
Query 4
/ 20
BigQuery is Google's fully managed, NoOps, low cost analytics database. With BigQuery you can query terabytes and terabytes of data without managing infrastructure or needing a database administrator. BigQuery uses SQL and takes advantage of the pay-as-you-go model. BigQuery allows you to focus on analyzing data to find meaningful insights.
We have a newly available dataset for NCAA Basketball games, teams, and players. The game data covers play-by-play and box scores back to 2009, as well as final scores back to 1996. Additional data about wins and losses goes back to the 1894-5 season in some teams' cases.
In this lab we will find and query the NCAA dataset using 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.
BigQuery opens, but there's nothing in here! Luckily, there are tons of Open Datasets available in BigQuery for you to query, and of course you can upload your own data, which you'll do in the next section.
In this section, you pull in some public data so you can practice running SQL commands in BigQuery.
Type ncaa basketball
in the search bar and press Enter.
Click on the NCAA Basketball tile, then View Dataset.
bigquery-public-data
added to the Explorer panel, opened to ncaa_basketball
If bigquery-public-data
is not present in explorer panel, click on the + ADD then select Star a project by name.
Type bigquery-public-data
and click STAR .
Click on the bigquery-public-data > ncaa basketball to view the tables you can explore.
Click on mbb_games_sr (men's NCAA game results table) and then click the Preview tab to see sample rows of data. Click the Details tab to get metadata about the table.
Click the Details tab to get metadata about the table.
Question: How many games does the dataset contain? How big is the table?
Answer: The table is about 50 MB and there are over 29k games for us to explore.
Question: But how many individual plays can we analyze?
Hint:
Answer: Over 4 million individual play basketball.
Let’s write some SQL to see what types of plays are there for us to explore.
Click "+" (Compose New Query) icon.
Copy and paste the below query into the editor:
Looking at your results, how many historical shots were TWOPOINTMADE or FREETHROWMISS?
Click Check my progress to verify the objective.
Wow! The Tigers made over 50% of their three point shots on 11-22-2016.
Click Check my progress to verify the objective.
Imagine taking a shot with 80,000 people watching you!
Click Check my progress to verify the objective.
The Bulldogs and Terriers played in a game that scored 258 total points!
Click Check my progress to verify the objective.
The finals games are surprisingly close! The biggest difference was in 2018 with a delta of 17 points.
Click Check my progress to verify the objective.
You've learned how to query the NCAA basketball dataset inside of BigQuery. We encourage you to modify the above queries and write your own to further your understanding. Looking for more NCAA query practice? Checkout the GitHub repo here.
...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 05, 2024
Lab Last Tested November 05, 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.
현재 이 콘텐츠를 이용할 수 없습니다
이용할 수 있게 되면 이메일로 알려드리겠습니다.
감사합니다
이용할 수 있게 되면 이메일로 알려드리겠습니다.
One lab at a time
Confirm to end all existing labs and start this one