What is dbt?
dbt turns SQL SELECT statements into tables and views in your data warehouse, in the right order, with tests and documentation. It brings software engineering practices to analytics.
dbt created the analytics engineer role: people who build clean, trusted data models for dashboards and analysis. It works with Snowflake, BigQuery, Databricks, Redshift, PostgreSQL and more.
How to use this dbt roadmap
Know SQL well first. Use dbt Core with DuckDB or PostgreSQL locally, or a free dbt Cloud developer account.
Model a real business: orders, customers and payments. It makes staging and mart layers easy to understand.
1Step 1: dbt basics
Projects, models and runs.
What is it?
Learn the project structure, models, materialisations and the dbt run command.
What to learn
Use ref() for every model reference. It builds dependencies and environments correctly.
Learn each topic here
Project structure
models, seeds, tests and dbt_project.yml.
Why it matters: Organised code.
Models
SQL SELECT files that become tables or views.
Why it matters: Core building block.
ref()
Reference other models.
Why it matters: Automatic dependency graph.
Materialisations
view, table, incremental and ephemeral.
Why it matters: Performance and cost.
dbt run and build
Run models and tests.
Why it matters: Daily commands.
Example
sql
-- models/marts/fct_orders.sql
select
o.order_id,
o.customer_id,
o.ordered_at,
sum(p.amount) as amount_aed
from {{ ref('stg_orders') }} o
left join {{ ref('stg_payments') }} p using (order_id)
group by 1, 2, 3A fact model built from two staging models.
Helpful resource: dbt documentation
2Step 2: Sources and modelling layers
Structure transformations cleanly.
What is it?
Declare raw sources, then build staging, intermediate and mart layers.
What to learn
Staging models should only rename, cast and lightly clean. Business logic belongs later.
Learn each topic here
Sources
Declare raw tables and check freshness.
Why it matters: Clear lineage.
Staging layer
One model per source table, cleaned.
Why it matters: Consistent base.
Intermediate layer
Reusable business logic.
Why it matters: Avoid repetition.
Marts
Facts and dimensions for analysis.
Why it matters: What dashboards use.
Naming conventions
stg_, int_, fct_ and dim_ prefixes.
Why it matters: Readable projects.
Example
yaml
sources:
- name: shop
schema: raw
tables:
- name: orders
loaded_at_field: _loaded_at
freshness:
warn_after: {count: 12, period: hour}A source with a freshness check.
Helpful resource: dbt best practices: structure
3Step 3: Testing and documentation
Build trust in data.
What is it?
dbt tests check data assumptions; documentation and lineage graphs explain models.
What to learn
Add unique and not_null tests on every primary key from day one.
Learn each topic here
Generic tests
unique, not_null, accepted_values and relationships.
Why it matters: Catch bad data.
Singular tests
Custom SQL tests.
Why it matters: Business rules.
Unit tests
Test model logic with mock inputs.
Why it matters: Correct transformations.
Documentation
Descriptions and dbt docs site.
Why it matters: Shared understanding.
Lineage
DAG of models.
Why it matters: Impact analysis.
Example
yaml
models:
- name: fct_orders
description: One row per order with total paid in AED.
columns:
- name: order_id
tests: [unique, not_null]
- name: customer_id
tests:
- relationships: {to: ref('dim_customers'), field: customer_id}Tests and documentation in one YAML file.
Helpful resource: Testing in dbt
4Step 4: Incremental models and performance
Handle large data efficiently.
What is it?
Incremental models process only new data. Warehouse-specific settings control cost and speed.
What to learn
Use a unique_key with incremental models so late updates are merged, not duplicated.
Learn each topic here
Incremental models
Process only new or changed rows.
Why it matters: Lower cost.
is_incremental()
Filter logic for incremental runs.
Why it matters: Correct loads.
Snapshots
Track slowly changing dimensions.
Why it matters: History of changes.
Warehouse configs
Clustering and partitioning.
Why it matters: Faster queries.
Selectors and state
Run only changed models.
Why it matters: Faster CI.
Example
sql
{{ config(materialized='incremental', unique_key='event_id') }}
select * from {{ ref('stg_events') }}
{% if is_incremental() %}
where event_time > (select max(event_time) from {{ this }})
{% endif %}An incremental model that only loads new events.
Helpful resource: Incremental models
5Step 5: Jinja, macros and packages
Write less, reuse more.
What is it?
Jinja templating and macros remove repetition; packages share common logic.
What to learn
Use dbt_utils before writing your own macro. Most common needs are already solved.
Learn each topic here
Jinja basics
Variables, loops and conditions in SQL.
Why it matters: Dynamic SQL.
Macros
Reusable SQL functions.
Why it matters: DRY code.
Packages
dbt_utils, dbt_expectations and others.
Why it matters: Ready-made logic.
Variables and environments
dev versus prod targets.
Why it matters: Safe development.
Semantic layer
Defined metrics for consistent reporting.
Why it matters: One version of truth.
Example
sql
{% macro aed(column) %}
round({{ column }} * 1.0, 2)
{% endmacro %}
select order_id, {{ aed('amount') }} as amount_aed from {{ ref('stg_orders') }}A small reusable macro.
Helpful resource: dbt package hub
6Step 6: dbt in production
Expert level: run dbt for a whole company.
What is it?
Experts run dbt with CI/CD, orchestration, governance and team workflows across many models.
What to learn
Run slim CI on every pull request so only changed models and their children are built and tested.
Learn each topic here
CI/CD
Build and test changed models on pull requests.
Why it matters: Safe changes.
Orchestration
dbt Cloud jobs or Airflow.
Why it matters: Scheduled runs.
Governance
Model contracts, versions and access.
Why it matters: Stable interfaces.
Multi-project setups
Splitting large projects (dbt Mesh).
Why it matters: Scale teams.
Observability
Run times, failures and freshness alerts.
Why it matters: Reliable data.
Example
bash
dbt build --select state:modified+ --defer --state ./prod-artifactsSlim CI: build only changed models and their downstream models.
Helpful resource: dbt Learn courses
dbt roadmap project ideas
Publish your dbt project on GitHub with the docs site and a lineage screenshot.
First models
Three models with ref().
Layered project
Staging to marts.
Tested models
Tests and docs everywhere.
Incremental fact
Cost and runtime improved.
Macro library
Reusable logic and packages.
Production setup
CI/CD, contracts and alerts.
Tips to finish this dbt roadmap
- Master SQL. dbt is only as good as your SQL.
- Test keys always. Duplicate keys break dashboards.
- Keep models small. Easier to read and debug.
- Document as you go. Future you will thank you.
Career paths and next steps
dbt skills lead to analytics engineer, data engineer and BI developer roles. Data teams across the Gulf adopting modern data stacks increasingly list dbt in job ads.
Next, learn a warehouse such as Snowflake or BigQuery and an orchestrator such as Airflow.
Related roadmaps
dbt Roadmap FAQs
What is dbt used for?
Transforming raw warehouse data into clean, tested models using SQL.
Is dbt free?
dbt Core is open source. dbt Cloud has free and paid plans.
Do I need Python for dbt?
No. dbt is mostly SQL and YAML, though Python models are supported on some warehouses.
What is an analytics engineer?
Someone who builds reliable data models between raw data and analysis, often using dbt.