Learning

Dialect · PostgreSQL

Junior

Select and filter

NULL traps

Conditional CASE expressions

Sorting and LIMIT

Unique rows and DISTINCT

Data types and CAST

String functions

Aggregates, GROUP BY and HAVING

JOIN

INSERT — add rows

UPDATE — change rows

DELETE — remove rows

CREATE TABLE — create tables

Table constraints — PRIMARY KEY, UNIQUE and CHECK

Table relationships — FOREIGN KEY and cascading deletes

ALTER TABLE — change the schema

Transactions — COMMIT, ROLLBACK and SAVEPOINT

Middle

Set operations

Schema design and first normal form

Functional dependencies, 2NF and 3NF

Denormalization — historical snapshots and read copies

Denormalization — consistency and reconciliation

Fact and dimension tables — star schema

Dimension hierarchies — snowflake schema

SCD Type 1 — overwrite dimension attributes

SCD Type 2 — track dimension history

ETL and ELT — full loads

Incremental loads and idempotent replays

CDC — capture inserts, updates and deletes

CDC — apply changes without duplicates

Data quality — duplicates, missing values and broken links

Data quality — post-load reconciliation

dbt — SQL models, source and ref

dbt — data tests

dbt — incremental models

dbt — snapshots and change history

dbt — Jinja and macro arguments

dbt — macros for different SQL dialects

dbt — documenting models and columns

dbt — lineage and dependency graphs

Subqueries

CTE

Window functions

Dates and time series

Top-N per group

Indexes and CREATE INDEX

Query plans and EXPLAIN

Range partitioning

Partition pruning and query plans

JSON fields, paths and null

JSON arrays and nested data

Regular expressions — search and validation

Regular expressions — extraction and replacement

Views

Materialized views

Triggers — BEFORE and AFTER

Triggers — change log

Stored functions

Stored procedures

Roles and membership

Object privileges — GRANT and REVOKE

Migrations — schema and data

Migrations — rollback

Transaction isolation and read anomalies

Locks and deadlocks

Senior

Recursive CTEs

Gaps and islands, sessions

Retention, funnels, cohorts