Module 4 · You are here
Your First Query: SELECT, FROM, LIMIT
Write the same query BigQuery has been running for you under the hood when you preview a table. Learn why backticks are non-negotiable, why commas are the unsung hero of SQL, and how DISTINCT sanity-checks a new column.
By the end of Module 4, you will be able to:
- Identify the three required pieces of a basic query: SELECT, FROM, LIMIT.
- Write a SELECT … FROM … LIMIT against a real BigQuery table.
- Reference a table using its project.dataset.table path wrapped in backticks.
- Use commas correctly when listing multiple columns.
- Use DISTINCT to remove duplicate values.
- Understand BigQuery's case-sensitivity rules : and which strings are case-sensitive.
Subsections in Module 4
4.1
Anatomy of a query
Open 4.2Backticks, commas, case
Open 4.3Specific columns + DISTINCT
Open 4.4Run your first query
Open 4.5Starter query checkpoint
OpenStart here: Module 4.1 · Anatomy of a query
Begin Module 4
After Module 4: Module 5 · Filtering and Sorting: WHERE, ORDER BY, LIMIT
Next: Module 5 · Filtering and Sorting: WHERE, ORDER BY, LIMIT