
Welcome to Analytics Engineering with dbt on Snowflake. This short lecture sets out what the course covers — SQL, Snowflake fundamentals and dbt — how the sections build on each other, and how the hands-on assignments work. By the end, you'll know exactly what you're going to be able to build by the final section.
A quick introduction to your instructor: more than 10 years working with data as a Data Analyst, Data Scientist and Data Engineer. Also a quick introduction of this course is built for analysts moving into analytics engineering, data professionals adding dbt and Snowflake to their toolkit, and anyone starting a career in the modern data stack. This lecture covers the prerequisites, the mindset you'll need, and who will get the most out of the material. By the end, you'll know whether this course fits your goals.
A walkthrough of the full course structure: Analytics Engineering Overview, Data Modeling, SQL Crash Course, Snowflake Fundamentals and Analytics Engineering with dbt. This lecture explains how to work through the demos and assignments rather than just watching. By the end, you'll have a clear study plan for the sections ahead.
Analytics engineering is the discipline that turns raw data into trusted, analytics-ready models, and it's one of the fastest-growing roles in data. This section covers what data is, the analytics engineer role, the skills and tools involved, data sources, data repositories and data pipelines. By the end of the section, you'll be able to explain how data moves from source systems to analytics in a modern data stack.
A roadmap of the Analytics Engineering section: What Is Data, Intro to Analytics Engineering, Skills and Tools, Data Sources, Data Repositories and Data Pipelines. This lecture shows how the lessons build from the basics of data to a full end-to-end pipeline. By the end, you'll know what's coming and how the concepts connect.
Analytics engineering is the discipline that bridges data engineering and data analysis, owning the transformation layer that turns raw data into analytics-ready models. This lecture explains why the role emerged — cheap elastic cloud compute, the shift from ETL to ELT, and tools like dbt — and what an analytics engineer is accountable for. By the end, you'll be able to describe where the role sits in a modern data team.
Data is the raw material of every analytics pipeline — but "data" means several different things. This lecture defines data, information and knowledge, then breaks down structured, semi-structured and unstructured data, common data types, and the file formats you'll actually handle: CSV, JSON, XML, YAML, Avro, Parquet and ORC. By the end, you'll be able to classify any dataset and choose an appropriate format for it.
What does it actually take to work as an analytics engineer? This lecture covers the core skills — SQL mastery, data warehousing, dimensional modeling, testing and data quality, software engineering practice and stakeholder communication — and the standard toolchain: dbt, a cloud data warehouse, Git and CI/CD, orchestrators like Airflow or Dagster, ingestion tools such as Fivetran or Airbyte, and BI tools. By the end, you'll have a concrete skills checklist to benchmark yourself against.
Every pipeline starts at a source system in the operational world. This lecture covers operational OLTP databases and ACID guarantees, REST APIs (methods, request structure, authentication and HTTP status codes), files and FTP/SFTP, streaming and IoT data, and log and monitoring systems. By the end, you'll be able to identify the source types feeding a warehouse and the extraction approach each one needs.
Where does data land once it's extracted? This lecture compares data warehouses, data lakes and data lakehouses across use case, data structure, schema-on-write versus schema-on-read, and optimisation — with real platforms including Snowflake, BigQuery, Redshift, S3 and Databricks. It also covers NoSQL database families and API/FTP destinations. By the end, you'll be able to choose the right repository for a given analytics or ML workload.
Data pipelines move data from sources into repositories. This lecture contrasts ETL and ELT — including why cloud warehouses pushed the industry toward ELT — then compares batch processing and real-time streaming on latency, cost and complexity, and introduces the Lambda architecture with its batch, speed and serving layers. By the end, you'll be able to pick a pipeline pattern that fits your latency and budget requirements.
A recap of the Analytics Engineering section. You can now classify data by structure and format, describe the analytics engineer role and toolchain, identify common data sources, compare warehouses, lakes and lakehouses, and choose between ETL and ELT and between batch and real-time pipelines. Next, Data Modeling covers how to structure that data for analysis.
A good data model is the difference between a warehouse people trust and one they avoid. This section covers the Medallion architecture, dimensional modeling with star and snowflake schemas, slowly changing dimensions, Data Vault and the BEAM methodology. By the end of the section, you'll be able to design an analytics-ready model for a real business process.
A roadmap of the Data Modeling section: Intro to Data Modeling, Medallion Model, Dimensional Modeling, Data Vault and BEAM Methodology. This lecture shows how the modeling approaches compare and when each one fits. By the end, you'll know what's coming and how the concepts connect.
Data modeling is the process of designing how data is structured and organised so that analytical queries are fast, clear and trustworthy. This lecture explains why modeling matters for reporting and decision-making, and introduces the main approaches you'll compare in this section: dimensional modeling and Data Vault. By the end, you'll understand what a data model is responsible for and why the choice matters.
The Medallion architecture organises a data pipeline into Bronze, Silver and Gold layers. This lecture covers what belongs in each layer — raw ingested data, cleaned and validated intermediate data, and aggregated BI-ready data — and why separating raw from refined data makes pipelines reprocessable. By the end, you'll be able to assign any transformation step to the correct layer.
Dimensional modeling is the backbone of analytics-ready warehouses. This lecture covers the star schema in depth: fact tables and their transactional, periodic and accumulating variants; dimension tables, natural versus surrogate keys, and slowly changing dimensions Type 0 through Type 3; then the normalised snowflake schema and its trade-offs in join cost and ETL complexity. By the end, you'll be able to design a star schema for a business process and choose the right SCD type per attribute.
Data Vault is a modeling approach built for flexibility, scalability and auditability when business rules change frequently. This lecture explains its three building blocks — Hubs for core business entities, Links for relationships, and Satellites for descriptive, historised attributes — and where it outperforms a classic star schema. By the end, you'll be able to decompose a business domain into hubs, links and satellites.
BEAM (Business Event Analysis and Modeling) is a collaborative technique for designing dimensional models with business stakeholders rather than for them. This lecture walks through identifying atomic business events, defining granularity, applying the 7Ws (who, what, when, where, how many, why, how much), and turning the result into fact and dimension tables. By the end, you'll be able to run a modeling workshop and leave with a designed schema.
A recap of the Data Modeling section. You can now organize pipelines into Bronze, Silver and Gold layers, design star and snowflake schemas with the right fact table and SCD types, break a domain into Data Vault hubs, links and satellites, and run a BEAM session with stakeholders. Next, the SQL Crash Course gives you the language to build these models.
SQL is the core skill of analytics engineering. Every dbt model and every Snowflake transformation in this course is written in it. This section takes you from your first SELECT to window functions, covering the relational model, filtering, aggregations, joins, subqueries and CTEs. By the end of the section, you'll be able to write the analytical SQL used in real data pipelines.
A roadmap of the SQL Crash Course: Introduction to SQL, Important SQL Concepts, Basic Data Retrieval, Aggregations and Grouping, Joining Tables, Subqueries, CTEs and Window Functions. The section includes five hands-on assignments that build in difficulty. By the end, you'll know what's coming and how to pace your practice.
SQL — Structured Query Language — is the standard for talking to relational databases and the core skill of analytics engineering. This lecture covers what SQL is, why dialects differ across PostgreSQL, Oracle, T-SQL and Snowflake despite the ISO/IEC 9075 standard, and the four sublanguages: DDL, DML, DQL and DCL. By the end, you'll know which command belongs to which category and why dialect differences matter.
A guided tour of the Snowflake UI. This lecture walks through Snowsight so you can navigate worksheets, browse databases and schemas, inspect objects, monitor query history and manage your virtual warehouse. By the end, you'll be comfortable finding your way around your own Snowflake account and running your first queries.
Before writing queries, you need the relational model. This lecture covers primary, composite and foreign keys, one-to-one, one-to-many and many-to-many relationships, the database–schema–table hierarchy, views (regular, materialized and Snowflake secure views) and why they're not tables, and core SQL data types. By the end, you'll be able to read a relational schema and explain how its tables connect.
This is where you start writing SQL. The lecture covers the anatomy of a query — SELECT, FROM, WHERE, ORDER BY, LIMIT— column aliases, why SELECT * is fine for exploration but a problem in production pipelines, comparison and logical operators, and the IN, BETWEEN and LIKE predicates. By the end, you'll be able to filter, sort and limit data from any table with confidence.
Hands-on demo: writing your first SQL queries. Follow along as we select specific columns with aliases, filter with WHEREusing comparison and logical operators, use IN, BETWEEN and LIKE, sort with ORDER BY and limit results with LIMIT. By the end of this lecture, you'll be able to run filtered, sorted queries against any table.
Raw rows rarely answer a business question — aggregates do. This lecture covers COUNT, SUM, AVG, MIN and MAX, the GROUP BY rule that every non-aggregated column must appear in the grouping, and filtering grouped results with HAVING. By the end, you'll be able to build the grouped summaries that sit behind dashboards and KPIs.
Hands-on demo: summarizing data with SQL. Follow along as we use COUNT, SUM, AVG, MIN and MAX, group results with GROUP BY and filter groups with HAVING. By the end of this lecture, you'll be able to turn row-level data into the kind of summaries that drive dashboards and KPIs.
Relational data is split across tables by design, so joining is unavoidable. This lecture covers INNER JOIN for standard fact-to-dimension analytics, LEFT JOIN for data quality checks and finding missing records, RIGHT and FULL OUTER JOINfor reconciliation, and CROSS JOIN with a warning about Cartesian products on large datasets. By the end, you'll be able to choose the correct join type for the question you're answering.
Hands-on demo: combining data from several tables. Follow along as we write INNER, LEFT, RIGHT, FULL OUTER and CROSS joins on orders and customers, and compare how many rows each one returns. By the end of this lecture, you'll be able to pick the right join for the question you're answering.
A subquery is a query nested inside another. This lecture covers subqueries that return a single value, a single column or a full table, and how they behave in the WHERE clause for filtering, in SELECT as scalar subqueries, and in FROM as derived tables. By the end, you'll be able to recognise when a subquery is the right tool — and when it isn't.
Common Table Expressions, defined with WITH, turn dense nested SQL into readable, step-by-step logic. This lecture covers CTE syntax and scope, and why they improve readability, make debugging easier, and encourage the modular transformation mindset you'll carry straight into dbt models. By the end, you'll be able to refactor a nested query into clean, sequential CTEs.
Window functions calculate across a set of related rows without collapsing them — the key difference from GROUP BY. This lecture covers OVER, PARTITION BY and ORDER BY; aggregate windows for percent-of-total and benchmarking; ranking functions ROW_NUMBER, RANK, DENSE_RANK and NTILE; offset functions LAG, FIRST_VALUE and LAST_VALUE; and window frames including the ROWS versus RANGE distinction. By the end, you'll be able to write running totals, moving averages, deduplication logic and customer segmentation in SQL.
Hands-on demo: calculations across rows without collapsing them. Follow along as we build running totals, moving averages, deduplication with ROW_NUMBER, rankings with RANK and DENSE_RANK, segmentation with NTILE and period-over-period changes with LAG, all while controlling the window frame. By the end of this lecture, you'll be able to use window functions in real analytical queries.
A recap of the SQL Crash Course. You can now explain the relational model and the four SQL sublanguages, filter and sort data, aggregate with GROUP BY and HAVING, choose the correct join, structure logic with subqueries and CTEs, and write window functions for running totals, rankings and time-series analysis. Next, Snowflake Fundamentals puts that SQL to work on a cloud data platform.
Snowflake is one of the leading cloud data platforms, and it's where every transformation in this course runs. This section covers Snowflake's architecture, creating databases, schemas, tables and warehouses, loading data with stages and COPY INTO, and features such as Time Travel, zero-copy cloning, Streams and Tasks. By the end of the section, you'll be able to set up, load and automate a Snowflake environment.
A roadmap of the Snowflake Fundamentals section: Introduction to Snowflake, Snowflake Walkthrough, Creating Objects, Loading Data, Snowflake Special Features and Other Snowflake Capabilities. This lecture shows where the hands-on examples fall and how they lead to an automated ingestion assignment. By the end, you'll know what's coming and how the pieces connect.
Snowflake is a fully managed cloud data platform running on AWS, Azure and GCP, built around the separation of storage and compute. This lecture covers the three-layer architecture — cloud services, compute and storage — and the key objects you'll work with: databases, schemas, tables, views (including secure and materialized views), stages, virtual warehouses and role-based access control. By the end, you'll understand how Snowflake is organised and why its architecture scales.
Time to build. This lecture covers creating databases as top-level containers, schemas for environments and layers, and tables — including the difference between permanent, transient and temporary tables. It then covers virtual warehouses: sizing, AUTO_SUSPEND and AUTO_RESUME for cost control, and resuming and switching compute. By the end, you'll be able to stand up a working Snowflake environment from SQL.
Getting data in is the first real step of any ELT pipeline. This lecture covers internal and external stages, the COPY INTOcommand with ON_ERROR, PURGE, VALIDATION_MODE and PATTERN options, file format objects for CSV, JSON, Parquet, Avro, ORC and XML, loading from S3, GCS and Azure Blob, automated micro-batch ingestion with Snowpipe, streaming ingestion, external tables and programmatic loading. By the end, you'll be able to load files into Snowflake and choose the right ingestion pattern per source.
These are the features that make Snowflake different in day-to-day work. This lecture covers Time Travel for querying and recovering historical data, Fail-safe for disaster recovery, zero-copy cloning for instant dev and test environments, result caching and local disk caching, secure data sharing without duplication, and micro-partitioning with clustering keys. By the end, you'll be able to use these features to cut cost, speed up queries and recover from mistakes.
Snowflake does more than store tables. This lecture covers semi-structured data with the VARIANT, OBJECT and ARRAYtypes and LATERAL FLATTEN; Tasks for scheduled and dependent SQL, forming DAG-like pipelines; Stored Procedures for control flow and reusable logic; and Streams as native change data capture for incremental ELT. By the end, you'll be able to build an automated, incremental pipeline entirely inside Snowflake.
A recap of Snowflake Fundamentals. You can now explain Snowflake's storage–compute architecture, create databases, schemas, tables and warehouses, load data with stages, file formats, COPY INTO and Snowpipe, use Time Travel, zero-copy cloning and caching, and automate pipelines with Tasks, Stored Procedures and Streams. Next, Analytics Engineering with dbt brings structure, testing and version control to transformations on Snowflake.
dbt is the industry-standard tool for transforming data inside the warehouse, and this is the core section of the course. It covers dbt setup on Snowflake, models and the DAG, materializations, testing and data contracts, snapshots, macros and Jinja, packages, documentation and production deployment with CI/CD. By the end of the section, you'll be able to build, test and ship a production-grade dbt project.
A roadmap of the dbt section: Introduction to dbt, dbt and Snowflake, 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.
dbt is the transformation layer of the modern ELT stack. This lecture explains what dbt is, the difference between open-source dbt Core and the hosted dbt Cloud product, and how dbt organises SQL into models with explicit dependencies, tests and documentation. It also covers the problems dbt solves: duplicated logic, inconsistent metrics, missing lineage and undocumented pipelines. By the end, you'll be able to explain why dbt became a standard in data teams.
dbt and Snowflake are a natural pairing: dbt pushes SQL transformations down to the warehouse, exactly the ELT pattern Snowflake is built for. This hands-on lecture covers installing dbt-snowflake with pip, verifying the install, initialising a project with dbt init, configuring profiles.yml for your Snowflake account, and validating the connection with dbt debug. By the end, you'll have a working dbt project connected to your own Snowflake warehouse.
Hands-on demo: setup the datasets for Snowflake to prepare everything for this section. Follow along as we create snowflake users and objects. By the end of this lecture, you'll have a working Snowflake account with the datasets we're going to use throughout this section.
Hands-on demo: connecting dbt to Snowflake from scratch. Follow along as we install dbt-snowflake, verify it with dbt --version, create a project with dbt init, configure profiles.yml with your Snowflake credentials and confirm the connection with dbt debug. By the end of this lecture, you'll have a working dbt project connected to your Snowflake account.
Understanding how a dbt project is laid out saves hours of confusion later. This lecture covers the /models, /seeds, /snapshots, /macros, /tests and /analyses folders; the three key config files dbt_project.yml, profiles.yml and packages.yml (and why credentials never belong in Git); the main CLI commands from dbt run and dbt build to dbt compile and dbt docs serve; and the four-stage lifecycle of parsing, compilation, execution and artifact generation. By the end, you'll know exactly what dbt does when you press run.
dbt encourages a layered data warehouse, and getting the layers right is what keeps a project maintainable as it grows. This lecture covers the four layers of a modern ELT project: raw (untouched source data), staging (cleaned, renamed and standardized), intermediate (joins and enrichment) and marts (analytics-ready star schemas with fact and dimension tables). By the end, you'll be able to decide which layer any transformation belongs in.
Hands-on demo: setting up a layered dbt project. Follow along as we organize the /models folder into staging, intermediate and marts, and look at how raw data moves through each layer toward analytics-ready fact and dimension tables. By the end of this lecture, you'll have a project structure that scales as you add models.
Models are where every transformation in dbt lives. This lecture explains what a dbt model is: a SQL SELECT statement saved in a file, which dbt materializes as a table or view in your warehouse at runtime. You'll build your first model on Snowflake and see how dbt turns a plain query into a warehouse object. By the end, you'll be able to create, run and inspect your own dbt models.
Hands-on demo: building and running your first dbt model. Follow along as we write a staging model as a SELECTstatement, run it with dbt run, and inspect both the compiled SQL and the view dbt creates in Snowflake. By the end of this lecture, you'll have your first model running in the warehouse.
Your turn: build the remaining four e-commerce staging models, one view per source table, doing only cleaning and renaming, with no joins and no business logic. You're done when dbt run --select staging builds 5 views with no errors: customers 30 rows, orders 45, order_items 73, products 20 and payments 43.
The ref() function is what turns a folder of SQL files into a connected pipeline. This lecture covers how ref() links one model to another, registers a dependency edge in the dbt DAG, and lets dbt work out execution order automatically. It also explains why ref() enables lineage tracking, environment isolation and safe refactoring. By the end, you'll be able to chain models together without ever hard-coding a table name.
Hands-on demo: connecting models with ref(). Follow along as we build a downstream model on top of a staging model, then see how dbt resolves ref() to the correct schema and runs models in the right order. By the end of this lecture, you'll be able to chain models without hard-coding table names.
Raw data enters a dbt project through source(). This lecture covers declaring sources in YAML, referencing them in staging models, and why dbt treats sources as the roots of the DAG. You'll see how source() gives you a controlled, testable and documented entry point, with full lineage from raw tables to marts. By the end, you'll be able to connect your dbt project to raw Snowflake tables the right way.
Hands-on demo: declaring raw data as dbt sources. Follow along as we define sources in a YAML file, replace hard-coded raw table names with source(), and see the sources appear as the roots of the DAG. By the end of this lecture, you'll have staging models with full lineage back to raw Snowflake tables.
Stale data breaks dashboards quietly. This lecture covers dbt source freshness, which checks how recently your raw data was loaded. You'll configure loaded_at_field together with warn_after and error_after thresholds, then run the check to catch SLA violations before stakeholders do. By the end, you'll be able to monitor data recency across all your sources.
Hands-on demo: monitoring how recent your raw data is. Follow along as we add loaded_at_field and a freshness block with warn_after and error_after to a source, then run dbt source freshness and read the results. By the end of this lecture, you'll be able to catch stale data before your stakeholders do.
Seeds are CSV files that live in your dbt repository under version control. This lecture covers when to use them (lookup tables, mapping logic and small reference datasets), how dbt seed loads them into your warehouse as tables, and how to reference them with ref() like any other model. It also covers when not to use seeds for data loading. By the end, you'll be able to add version-controlled reference data to your project.
Hands-on demo: adding reference data with seeds. Follow along as we add a CSV lookup file to /seeds, load it into Snowflake with dbt seed and join it into a model with ref(). By the end of this lecture, you'll be able to manage small, version-controlled reference datasets in your project.
Your turn: add the events and ops sources to your sources YAML in the RAW database, using _LOADED_AT as loaded_at_field, a 3-hour warn_after for events and a 24-hour error_after for ops. Then build the two remaining staging views, cleaning and renaming only. You're done when web events returns 59 rows and inventory returns 64.
Your turn: build your first intermediate model, int_order_items_enriched, at a granularity of one order line per row. You'll join stg_ecom__order_items to stg_ecom__products, pull the department from seed_product_category_hierarchy with ref(), and calculate line_margin_amount = line_amount − quantity × unit_cost. You're done when the model builds and the row count still matches your order items staging model, with no fan-out from the joins.
The DAG (Directed Acyclic Graph) is how dbt understands your whole project. This lecture covers nodes (models, seeds, snapshots and tests) and edges (ref() and source() dependencies), why dbt fails on circular dependencies, and how independent branches run in parallel. It then covers graph selection syntax, including model+, +model, +model+, model+2and @model, and exploring model lineage with dbt docs for impact analysis. By the end, you'll be able to run exactly the part of the pipeline you need.
Not every transformation fits comfortably in SQL. This lecture covers dbt Python models: .py files that return a DataFrame, and on Snowflake they execute on Snowpark. You'll learn when Python is the better choice, and the key constraint that Python models can only be materialized as table or incremental, not view or ephemeral. By the end, you'll know when and how to add a Python model to a SQL-first dbt project.
Materializations decide how each model is persisted in the warehouse, and they drive both cost and performance. This lecture covers view, table, incremental and ephemeral, then goes deep on incremental strategies: merge for mutable data and CDC, append for immutable event streams, delete+insert for partition-style reloads, and insert_overwrite(and why it isn't available on Snowflake). By the end, you'll be able to pick the right materialization and incremental strategy for any dataset.
Hands-on demo: the view materialization. Follow along as we configure a model as a view, run it, and inspect the CREATE VIEW statement dbt compiles and the resulting object in Snowflake. By the end of this lecture, you'll know when a view is the right choice and what it costs at query time.
Hands-on demo: the table materialization. Follow along as we switch a model to table, run it, look at the CREATE OR REPLACE TABLE statement dbt generates and see how the table is fully rebuilt on each run. By the end of this lecture, you'll know when to persist a model as a physical table.
Hands-on demo: building an incremental model. Follow along as we configure incremental with a unique_key and an incremental strategy, filter new records with an is_incremental() block, run a full first load and then a second run that processes only new data. By the end of this lecture, you'll have a working incremental model for large datasets.
Hands-on demo: the ephemeral materialization. Follow along as we make a model ephemeral, run the project and inspect the compiled SQL to see the model injected as a CTE into downstream models, with nothing created in Snowflake. By the end of this lecture, you'll know when to reuse logic without persisting it.
Your turn: build two fact models and choose the right incremental strategy for each. fct_web_events holds immutable clickstream data. fct_inventory_daily holds daily snapshots where whole partitions are restated. Run each model, then run 03_raw_load_batch2.sql in Snowflake and run both models again. You're done when the first run gives 59 and 64 rows, and the second run adds the new batch without duplicates.
Unit tests check whether your SQL logic is correct before it ever touches real data. This lecture covers how dbt unit tests work: you define mock input rows and the expected output, dbt builds the model against the mock, and it reports any difference. You'll learn when unit tests pay off, such as complex CASE WHEN logic, regex, calculations and refactors, and why they apply to SQL models, not sources. By the end, you'll be able to write a unit test for any model with nontrivial logic.
Data tests are executable assertions about the data in your warehouse. If the compiled query returns rows, the test fails. This lecture covers the built-in generic tests not_null, unique, accepted_values and relationships, then custom tests: singular tests stored in /tests for one-off business rules, and reusable, parameterized custom generic tests built as macros. By the end, you'll be able to cover your models with the right mix of built-in and custom data tests.
This lecture brings all your tests together under the dbt test command. It covers running every test in the project, targeting specific models with --select, and filtering by test type with test_type:singular and test_type:generic. It closes with a side-by-side comparison of singular, custom generic and unit tests: where each one lives, whether it can be reused, what it runs against, and which question it answers. By the end, you'll know which test to write for which problem and how to run it.
Hands-on demo: the built-in generic tests. Follow along as we add not_null, unique, accepted_values and relationships tests to a model's YAML, run dbt test, and inspect the SQL behind a failing test. By the end of this lecture, you'll be able to add basic data quality coverage to any model in minutes.
Your turn: add built-in tests across the staging layer. On stg_ecom__orders, test for unique order_id, relationships to customers and to seed_exchange_rates through currency_code, and accepted values on status. Add unique and relationship tests to order items, and accepted values on product category, payment status and web event type. You're done when dbt test --select staging passes, or only warns.
Let's follow up on the Built In Generic Tests, specifically focusing on the mart's layer model. We'll go through the star schema models.
Hands-on demo: writing a singular test. Follow along as we write a one-off SQL assertion in /tests that returns the rows breaking a business rule, run it and inspect a failure. By the end of this lecture, you'll be able to test cross-column and cross-table business rules.
Hands-on demo: building a reusable custom generic test. Follow along as we write a parameterized test as a macro, apply it to several columns in YAML and run it with dbt test --select test_type:generic. By the end of this lecture, you'll be able to create your own reusable tests for any model.
Data contracts formalize the agreement between the people who produce a dataset and the people who consume it, covering schema, quality, semantics and operational guarantees. This lecture explains why contracts matter for ownership, stability and data mesh practices, then how dbt implements each part: schema enforcement of column names and types at build time, dbt tests as the quality layer, source freshness for SLAs, and dbt docs as the human-readable definition. By the end, you'll be able to enforce a contract on a dbt model and prevent accidental schema drift.
Hands-on demo: enforcing a data contract on a dbt model. Follow along as we turn on contract: enforced, declare every column with its data type and add constraints, then change the model and watch dbt stop the build when the schema drifts. By the end of this lecture, you'll be able to guarantee a stable interface for the people using your data.
Your turn: enforce a contract on dim_customers. You'll declare the data type of every column and add a not_nullconstraint on customer_id. You're done when the model builds with the contract enforced, and deliberately changing a column's type makes the build fail.
Snapshots are dbt's native implementation of Type 2 slowly changing dimensions, capturing how records change over time with dbt_valid_from and dbt_valid_to columns. This lecture covers the timestamp and check strategies, when to use each, a full end-to-end example across two runs, and the YAML-based snapshot configuration recommended since dbt v1.9. By the end, you'll be able to add reliable change history to any source table.
Hands-on demo: tracking history with dbt snapshots. Follow along as we configure a YAML-based snapshot with the timestamp strategy, run dbt snapshot, change a source record and run it again to see dbt_valid_from and dbt_valid_to record the change. By the end of this lecture, you’ll be able to build Type 2 slowly changing dimensions in dbt.
Your turn: stg_ecom__products has no trustworthy updated_at column, so build snap_products using the checkstrategy instead. You’ll choose which columns to compare and configure the snapshot in YAML. You’re done when dbt snapshot creates the table, and changing a tracked column creates a new version row with the old one closed off.
Hands-on demo: writing your own dbt macros. Follow along as we move repeated SQL logic into a macro in /macros, add arguments, call it from several models and check the compiled SQL in target/. By the end of this lecture, you’ll be able to remove repeated logic from your project.
Your turn: build two macros. First, convert_currency, used in int_orders_enriched to produce net_amount_usd by joining seed_exchange_rates. Second, safe_divide, used to add avg_order_value_usd to dim_customers without errors when dividing by zero. You’re done when both models build and customers with no orders don’t cause a division error.
dbt packages are the equivalent of libraries in software engineering: reusable collections of macros, models, tests and seeds. This lecture covers declaring dependencies in packages.yml, installing with dbt deps, and the ecosystem — dbt_utils, dbt_date, audit_helper and Elementary for monitoring. It goes hands-on with dbt_utils: generic tests, surrogate keys, deduplication, pivots and date spines. By the end, you'll stop rewriting logic that already exists.
Hands-on demo: using the dbt-utils package. Follow along as we add dbt-utils to packages.yml, install it with dbt deps, and use its macros for surrogate keys, deduplication, pivoting and date spines. By the end of this lecture, you’ll be able to replace hand-written SQL with tested package macros.
Hands-on demo: the generic tests in dbt-utils. Follow along as we apply dbt-utils tests to our models, covering checks the built-in tests can’t express, and run them alongside the rest of the test suite. By the end of this lecture, you’ll have a wider set of data quality checks available without writing them yourself.
Your turn: refactor existing models with dbt-utils. Add surrogate keys to stg_ops__inventory and int_order_items_enriched, deduplicate stg_ecom__customers, and in rpt_revenue_by_category replace the hard-coded category list with dbt_utils.get_column_values(ref('seed_product_category_hierarchy'), 'category'). You’re done when every refactored model builds and returns the same results as before.
Running dbt on your laptop is one thing; running it in production is another. This lecture covers dev, QA and prod environments and how to align Snowflake databases and schemas with dbt targets; dbt state files for deferred, state-aware builds; dbt variables for parameterisation, environment-aware logic and feature flags; and the full promotion flow through Git, Gitflow branching and CI/CD pipelines with GitHub Actions. It closes with production best practice: orchestration with Airflow or Dagster, secret management instead of credentials in profiles.yml, and operational configs such as query_tag, snowflake_warehouse, transient, cluster_by, grants and secure. By the end, you'll be able to design a safe, automated deployment path for a dbt project.
A recap of the dbt section. You can now set up dbt on Snowflake, build layered models connected with ref() and source(), choose materializations and incremental strategies, protect data quality with tests, contracts and freshness checks, track history with snapshots, write macros and Jinja, use packages, and deploy dbt through environments and CI/CD. You now have what you need to build and run a production analytics engineering pipeline.
Analytics engineering is one of the fastest-growing roles in data, and dbt on Snowflake 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 Snowflake.
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.
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
Snowflake Fundamentals: architecture, virtual warehouses, loading data with stages, COPY INTO and Snowpipe, Time Travel, zero-copy cloning, Streams, Tasks and Stored Procedures
Analytics Engineering with dbt: models and the DAG, ref() and source(), materializations and incremental strategies, unit tests, data tests, data contracts, snapshots, Jinja, macros, packages, documentation, and running dbt in production with Git and CI/CD
Learn by doing. The course includes 16 hands-on assignments with clear success criteria, so you can check your own work as you go.
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 automate data in Snowflake, 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.