
Welcome to the course. See what you'll build: a tested, documented e-commerce analytics project that turns messy, duplicated raw data into tables a business can trust, using SQL, dbt and Google BigQuery the way data teams use them in production.
Meet your instructor, Ricardo Gonçalves, who has worked with data as a data analyst, data scientist and data engineer for more than 10 years. Then check whether the course fits you: learning dbt, getting productive on BigQuery, or starting out as an analytics engineer. No prior Google Cloud experience needed.
Get the course roadmap: SQL, Google Cloud and BigQuery fundamentals, and analytics engineering with dbt. Learn what each of the six sections delivers, what's expected of you, and why you should finish the BigQuery section before starting dbt: it creates the project and loads the data dbt needs.
Start with the big picture before touching any tool. This section explains what data is, what an analytics engineer does, where data comes from, where it's stored, and how data pipelines move it with ETL and ELT.
A quick map of the six topics in this section: what data is, an introduction to analytics engineering, the analytics engineer's skills and tools, data sources, data repositories, and data pipelines.
Learn what analytics engineering is: the discipline between data engineering and data analysis that turns raw data into analytics-ready data. See why it exists (cloud warehouses, the shift from ETL to ELT, and tools like dbt) and what the role owns: data models, metric definitions, the semantic layer, automated tests and self-serve analytics.
Understand how data becomes information and then knowledge, and how data analysis, data science and data engineering differ. Compare structured, semi-structured and unstructured data, common data types, and file formats from CSV, JSON, XML and YAML to binary formats like Avro, Parquet, ORC and Protobuf.
The skills that make an analytics engineer: SQL mastery, data warehousing, dimensional data modeling, testing and data quality, software engineering practices, and communication with stakeholders. Plus the toolkit: dbt, cloud data warehouses, Git and CI/CD, orchestrators like Airflow and Dagster, ingestion tools like Fivetran and Airbyte, and BI tools.
Learn where analytics data comes from: operational OLTP databases, REST APIs (methods, request structure, authentication and HTTP status codes), files and FTP/SFTP transfers, streaming and IoT data, and logs. Knowing your sources is the first step in designing any data pipeline.
Compare where data is stored for analytics: data warehouses like BigQuery, Snowflake and Redshift, data lakes on cloud object storage, data lakehouses, and NoSQL databases. Learn schema-on-write versus schema-on-read, and which repository fits BI, machine learning or large raw files.
Learn how data pipelines move data from sources to repositories. Compare ETL and ELT with their tools, advantages and trade-offs, batch versus real-time processing, and the Lambda architecture that combines both. This is the ELT pattern the rest of the course is built on.
Recap what data is, what analytics engineering means, the main data sources and repositories, and how ETL and ELT pipelines connect them, so you're ready to design data models in the next section.
Data modeling is the thinking you do before writing any SQL. This section shows how to structure data so analysis, reporting and decision-making are fast and reliable, and introduces the main approaches used by data teams today.
A map of this section: an introduction to data modeling, the Medallion architecture, dimensional modeling with star and snowflake schemas, Data Vault, and the BEAM methodology.
Learn what data modeling is, why it's essential for fast analytical queries, and how the two main families of approaches, dimensional modeling and Data Vault, differ in purpose.
Learn the Medallion architecture, a layering approach for analytics pipelines that is common in lakehouses. Bronze keeps raw data as ingested, silver cleans, deduplicates and validates it, and gold holds aggregated, analytics-ready tables for BI tools.
Apply the Medallion architecture to a worked example: decide what belongs in bronze, which cleaning steps move data to silver, and what the gold tables that analysts and dashboards query should look like.
The core of analytics modeling (free preview). Learn the star schema and snowflake schema, define the grain of a fact table, and compare transactional, periodic snapshot and accumulating snapshot fact tables. Then cover dimension tables, natural vs surrogate keys, and slowly changing dimensions types 0, 1, 2 and 3.
Build a star schema step by step: one fact table of business events with foreign keys and measures, surrounded by denormalized dimension tables that give each event its context.
Normalize a dimension into sub-dimensions (customer, city, country) to turn a star schema into a snowflake schema. Weigh the trade-off: less redundancy and consistent updates versus more joins and more complex pipelines.
Learn Data Vault, a modeling approach built for flexibility and auditability when business rules change often. Hubs hold core business entities, links hold the relationships between them, and satellites hold descriptive attributes and their history.
Learn BEAM, a collaborative way to design models with business stakeholders. Identify business events, define their grain, and describe each event with the 7Ws: who, what, when, where, how many, why and how much.
Take the business event "customer buys a product" from a BEAM session to a finished design: a sales fact table and customer, product and store dimension tables, ready to build in SQL.
Recap the Medallion architecture, star and snowflake schemas, slowly changing dimensions, Data Vault and BEAM, and how they come back when you build staging, intermediate and mart layers with dbt.
Every transformation needs a warehouse to run on. In this section you'll create your own Google Cloud project, load the course data into BigQuery, and learn enough about how BigQuery works to make good cost and design decisions when you build with dbt.
A map of this section: Google Cloud basics, BigQuery architecture and pricing, a tour of BigQuery Studio, creating datasets, tables and views, loading data, and the features you'll meet in a real job, from time travel to partitioning, nested data and security.
Learn how Google Cloud is organised and billed: regions, the resource hierarchy (organization, folders, projects, resources), IAM roles and service accounts, the main data services, and how they form an ELT data platform. Plus the guardrails: free trial, free tier and budget alerts, and why to skip the BigQuery sandbox for this course.
Create your Google Cloud account step by step and find the free trial credits. Any Google account works, and you don't need prior cloud experience.
Create a project with a readable project ID (it can't be changed later), link a billing account, and set a budget with alerts at 50, 90 and 100 percent. Learn why budget alerts notify you but don't stop spending.
Learn what makes BigQuery a serverless data warehouse: the Dremel, Jupiter and Colossus layers, slots, and separate storage and compute. Compare on-demand and capacity (Editions) pricing, active vs long-term and logical vs physical storage, five ways to scan fewer bytes, and the object model: project, dataset, table, view, routine and model.
A guided tour of the BigQuery console. Find the project picker and Explorer, preview tables for free, read the bytes-processed estimate before you run a query, and inspect a job's bytes billed, slot time and execution graph.
Install the Google Cloud CLI on macOS, which brings gcloud and bq in one install. Check it's on your PATH and fix the common "command not found" error.
Point the CLI at your project and authenticate twice: gcloud auth login for the command line, and gcloud auth application-default login for libraries like dbt. Skipping the second is the most common reason dbt can't connect to BigQuery.
Create datasets and choose their location (it's permanent), learn GoogleSQL data types, including NUMERIC for money and DATETIME vs TIMESTAMP, create tables, and compare views, materialized views and authorized views by cost and access.
Create the three raw datasets in the US multi-region, a table with an explicit schema, a view, and the Cloud Storage bucket that will receive the course files.
Compare every way to load data into BigQuery: local files, Cloud Storage with LOAD DATA and bq load, streaming with the Storage Write API and Pub/Sub, external and BigLake tables (including Apache Iceberg), and the Python client. Learn why batch loading is free and streaming isn't.
Upload the course CSV files to Cloud Storage and load seven raw tables with LOAD DATA and bq load, using explicit schemas. Break a load on purpose, read the error, fix it, and check your row counts before moving on.
The features that make BigQuery forgiving and cheap: time travel and fail-safe for recovery, table clones and snapshots, the result cache and BI Engine, data sharing without copies, and the two biggest cost levers, partitioning and clustering.
Capabilities you'll meet in a real job: STRUCT, ARRAY and JSON with UNNEST, scheduled queries, Dataform and Cloud Composer, stored procedures with transactions, change history, row-level and column-level security, data masking, and BigQuery ML.
Recap Google Cloud, BigQuery pricing and architecture, building and loading data, and the advanced features. The key idea to carry into dbt: BigQuery bills by bytes, and column choice, partitioning and clustering control that number.
The largest section of the course, where everything comes together. You'll turn the raw BigQuery data into a tested, documented dbt project with staging, intermediate and mart layers, the way analytics engineering teams build it.
A roadmap of the dbt section: Introduction to dbt, dbt and BigQuery, Project Structure and Workflow, Models and the DAG, Materializations, Data Quality and Testing, Snapshots, Macros and Jinja, Packages, Artifacts and Documentation, and dbt in Production. The section includes ten assignments that build a complete e-commerce project step by step. By the end, you'll know what's coming and how the project grows.
Learn what dbt is and why it has become the standard for SQL transformations in ELT stacks. Compare open-source dbt Core with the hosted dbt platform (formerly dbt Cloud), and see how models, materializations, the DAG, sources, tests and documentation stop duplicated logic and inconsistent metrics.
Why dbt and BigQuery fit the ELT pattern, and how to set them up: install dbt-bigquery with pip, run dbt init, configure profiles.yml with OAuth and no password in the file, cap spend with maximum_bytes_billed, and test the connection with dbt debug.
Install dbt-bigquery, create the project, connect it to your Google Cloud project through Application Default Credentials, and get a green dbt debug. Learn how BigQuery projects and datasets map to dbt's database and schema.
Learn the dbt project folders (models, seeds, snapshots, macros, tests, analyses), the three key files (dbt_project.yml, profiles.yml, packages.yml), the main dbt commands, and what happens on every run: parsing, compilation, execution and artifact generation.
A tour of the course's dbt project: where each folder and config file lives, what goes in it, and how dbt run, dbt build and dbt compile behave on real files.
Learn how dbt organizes a warehouse into layers: raw data exactly as the source sent it, staging models that clean and rename, intermediate models that join and enrich, and marts with fact and dimension tables ready for analytics.
Set up the staging, intermediate and marts folders, configure each layer's materialization and dataset in dbt_project.yml, and see where every model of the course project will live.
Learn what a dbt model is: a SQL SELECT saved in a file that dbt materializes as a view or table in BigQuery at run time (free preview). See how a model is written, compiled and built.
Build your first staging model, stg_ecom__customers, with the source-CTE and renamed-CTE pattern. Clean, rename and deduplicate the raw customer data, then run it and query the result in BigQuery.
Your first assignment: build the four remaining e-commerce staging models (products, orders, order items, payments) as views. Clean and rename only, no joins or business logic. You're done when dbt run --select staging builds 5 views with the expected row counts.
Walk through the solution to the staging-model assignment, the choices behind each cleaning and renaming step, and the mistakes students make most often.
Learn how ref() connects one model to another, registers a dependency in the DAG, lets dbt work out the run order, and resolves to the right dataset in every environment.
Replace hard-coded table names with ref() and watch dbt build models in the right order. See how the compiled SQL resolves to your own development dataset.
Learn how source() declares raw tables as the roots of your DAG in a sources YAML file, giving you lineage from raw data to marts and a single, testable, documented entry point.
Declare the BigQuery raw datasets as dbt sources and switch the staging models to source(). Mind BigQuery's case-sensitive dataset names.
Learn how dbt source freshness checks how recent your raw data is, using a loaded-at field with warn_after and error_after thresholds, so a broken ingestion job is caught before it breaks an SLA.
Configure loaded_at_field and freshness thresholds on the e-commerce sources, run dbt source freshness, and read the pass, warn and error results.
Learn dbt seeds: small CSV files kept in Git that dbt seed loads as tables. Use them for lookup tables, mapping logic and small reference datasets like exchange rates and category hierarchies.
Load the course seed files (exchange rates, order-status map, country codes, product category hierarchy) with dbt seed and reference them from models with ref().
Add the events and ops sources with freshness rules, then build the web events and inventory staging models. You're done when they return 59 and 64 rows.
Walk through the source definitions, freshness thresholds and the two new staging models, and why each one stays a thin view with no joins.
Build int_order_items_enriched: one order line per row, joined to products and to the category seed, with a line margin calculated from price, quantity and cost.
Walk through the intermediate model, how to keep the grain at one row per order line, and how to check the join didn't duplicate or drop rows.
Learn how dbt builds a graph of models, seeds, snapshots and tests, rejects circular dependencies, and runs independent branches in parallel. Use graph selectors (model+, +model, @model, model+2) to run part of the DAG, and see lineage in dbt docs.
Learn when a dbt model should be Python instead of SQL. A Python model returns a DataFrame, can only be a table or incremental, and on BigQuery runs through Dataproc or BigQuery DataFrames (BigFrames).
Plan the course marts as a star schema: which facts and dimensions the e-commerce data needs, their grain, and how they connect through the DAG.
Build int_orders_enriched, joining orders with payments and order-item totals so every fact table downstream starts from one clean, enriched order.
Build the fact tables of the star schema, set their grain, and reconcile row counts and revenue totals against the staging layer.
Build dim_customers with customer attributes and lifetime metrics, and see how facts and dimensions join in BigQuery for reporting.
Learn how dbt persists each model in BigQuery: views (no storage, recomputed on query), tables (fully rebuilt each run), incremental models (only new or changed rows), and ephemeral models (injected as a CTE). Compare the incremental strategies dbt-bigquery supports: merge and insert_overwrite.
Build a model as a view, inspect the CREATE VIEW dbt compiles, and see in BigQuery job details that every query re-scans the underlying tables.
Materialize a mart as a table, see the CREATE OR REPLACE TABLE dbt runs, and add partition_by and cluster_by so queries scan fewer bytes.
Build fct_orders_incremental with the merge strategy and a unique key, then add a lookback window so late-arriving updates aren't silently lost. Check that updated orders change in place instead of duplicating.
Turn a helper model into an ephemeral model, read the compiled SQL to see it injected as a CTE, and learn when that is better than another view.
Build two incremental fact tables, clickstream events and a daily inventory snapshot whose partitions get restated. Choose the strategy for each before writing SQL, and check which strategies dbt-bigquery supports.
Why insert_overwrite with date partitions is the right answer for both tables on BigQuery, how _dbt_max_partition and a lookback window work, and why append and delete+insert don't exist in dbt-bigquery.
Follow up on the Assignment solution to see incremental mode in action. We'll be loading fresh data into the ops and events raw schemas, as well as update old entries and see dbt handle the changes swiftly for us.
Learn dbt unit tests: mock input rows, define the expected output, and let dbt check your SQL logic before it touches real data. Use them for complex CASE WHEN logic, regex and maths, and before shipping a refactor.
Learn dbt data tests, assertions that compile to SQL and fail when rows come back. Compare built-in generic tests, singular tests and custom generic tests, and when to use each.
Run tests with dbt test, select them by model or by type (singular or generic), and see how dbt build runs models and tests together in DAG order.
Add unique, not_null, accepted_values and relationships tests to the staging models in YAML, run them, and read a failing test's compiled SQL to find the bad rows.
Test the staging layer: unique keys, relationships between orders, customers and products, and accepted values for statuses, categories and event types. You're done when dbt test --select staging passes or only warns.
Walk through every test, how to choose warn vs error severity, and what the failures reveal about the raw data.
Write your first singular test: a one-off SQL file in the tests folder that returns the rows breaking a business rule. Build assert_orders_have_line_items to catch orders with no line items, run it with dbt test, and read the failing rows.
Turn a check you'd otherwise repeat into a reusable, parameterised custom generic test. Build non_negative in tests/generic, apply it to any column in YAML like a built-in test, and learn when to use singular tests, custom generic tests or unit tests.
Write a singular test, assert_payments_reconcile_to_orders, proving that for every paid order the successful payments add up to its net amount. Then apply the non_negative test to every column where a negative value would be a bug, like net_amount, quantity and unit_price.
Walk through the payment reconciliation test and the cases that make it tricky: an order paid in two instalments, a failed payment followed by a successful retry, and refunded returns. Then see which columns need the non_negative test, and why.
Learn data contracts in dbt: enforce column names and data types at build time to stop schema drift, and combine them with tests, source freshness and documentation to give consumers guarantees on quality, schema and meaning.
Enforce a data contract on fct_orders: declare every column and data type in YAML, turn on contract enforcement, then break it on purpose. Learn which constraints BigQuery enforces: not_null is real, while primary_key and foreign_key are only declared, so uniqueness still needs a test.
Enforce a data contract on dim_customers: declare every column's BigQuery data type and add a not_null constraint on customer_id. You're done when the model builds and INFORMATION_SCHEMA shows customer_id as not nullable.
Walk through the dim_customers contract, the BigQuery type names it needs, and how to fix a FLOAT64 created by a division. See which breaking changes dbt catches before building and which BigQuery refuses at insert time.
Track how records change over time with dbt snapshots, dbt's built-in SCD type 2. Compare the timestamp and check strategies, read dbt_valid_from and dbt_valid_to, and define snapshots in YAML, the recommended format since dbt 1.9.
Build snap_customers with the timestamp strategy on updated_at, snapshotting the deduplicated staging model rather than the raw source. Load new data, run dbt snapshot again, and watch the customer's old row close with dbt_valid_to as the new version opens. Needs a billing-enabled project, since snapshots run a MERGE.
The products source has no trustworthy updated_at, so the timestamp strategy would miss price changes. Build snap_products with the check strategy, choose which columns to compare, change a price, and prove the snapshot captured a second version.
Walk through snap_products with the check strategy: which columns to compare (unit price, active flag and category) and why, how to read the closed and current rows, and when check is the better choice over timestamp.
Learn dbt macros, Jinja functions that generate SQL, so repeated logic lives in one place. See examples like currency conversion and safe division used across models.
Learn how Jinja extends SQL at compile time with variables, if statements, for loops and function calls, and how to read the compiled SQL to check what dbt will run.
Install dbt packages with packages.yml and dbt deps, then use dbt-utils for surrogate keys, deduplication, date spines, pivots and extra generic tests. Meet other popular packages: dbt-date, audit-helper and Elementary.
Run dbt like a data team: dev, QA and prod environments as separate Google Cloud projects, targets in profiles.yml, a GitFlow promotion flow, CI/CD with GitHub Actions and state artifacts, dbt variables, credentials kept out of Git, and an orchestrator for scheduling, retries and alerts.
Recap the full dbt workflow on BigQuery: project structure, models and the DAG, materializations, testing and data contracts, snapshots, macros and packages, and running dbt in production.
Analytics engineering is one of the fastest-growing roles in data, and dbt on Google BigQuery is one of its most in-demand skill sets. This course takes you from your first SQL query to deploying a tested, production-ready dbt project on BigQuery, in your own Google Cloud project.
Most dbt tutorials stop at "run your first model." This course goes further. You'll learn how real data teams structure, test, document and deploy their transformation layer, and you'll build a complete e-commerce analytics project step by step, from messy raw data to clean fact and dimension tables.
What you'll work through:
Analytics Engineering Overview: what the role is, where it sits in a data team, and how data moves from source systems into warehouses, lakes and lakehouses through ETL and ELT pipelines
Data Modeling: the Medallion architecture, star and snowflake schemas, fact and dimension tables, slowly changing dimensions, Data Vault and the BEAM methodology
SQL Crash Course: filtering, aggregations, joins, subqueries, CTEs and window functions, with five hands-on assignments
Google Cloud and BigQuery Fundamentals: projects, IAM and billing guardrails, BigQuery architecture and pricing, loading data from Cloud Storage, time travel, snapshots and clones, partitioning and clustering, nested JSON data, stored procedures and row-level security
Analytics Engineering with dbt: models and the DAG, ref() and source(), seeds and source freshness, materializations and incremental strategies on BigQuery, unit tests, data tests, data contracts, snapshots, Jinja, macros, dbt-utils, and running dbt in production with Git and CI/CD
Learn by doing. The course includes hands-on assignments with clear success criteria, including the exact row counts to expect, so you can check your own work as you go.
Keep costs at zero. You'll set up budget alerts before running a single query, and learn how BigQuery bills so the whole course fits inside the free tier.
Your instructor: Ricardo Gonçalves has more than 10 years of experience working with data as a Data Analyst, Data Scientist and Data Engineer. The course reflects how these tools are used in real projects, not only how they're described in the documentation.
By the end of this course, you'll be able to design analytics-ready data models, write the SQL behind them, load and optimize data in BigQuery, and build, test and deploy a dbt project you can show in interviews or use at work.
Enroll now and start building the skills modern data teams are hiring for.