Skip to main content
Foundational curriculum • 20 detailed guides

Data engineering guides written for clarity

Every concept starts with plain English analogies, before and after sample tables, and annotated SQL examples, linking straight into an interactive lab.

Analytics Foundations (Start Here)7 min read

GROUP BY vs. Window Functions (ROW_NUMBER, RANK, LAG) Made Simple

A beginner-to-practitioner guide explaining when SQL collapses rows with GROUP BY versus when Window Functions (OVER PARTITION BY, ROW_NUMBER, RANK, LAG) keep every row intact with side-by-side sample tables and real examples.

SQL GROUP BY vs Window FunctionsOVER PARTITION BYROW_NUMBER vs RANK vs DENSE_RANK
FOUNDATIONS-6Read guide →
Analytics Foundations (Start Here)5 min read

How NULL Values Break Math & Comparisons (and How COALESCE Fixes It)

Learn why NULL represents missing/unknown data (not zero or empty string), why = NULL fails silently, how NULL affects AVG and NOT IN, and how COALESCE and NULLIF protect production pipelines.

SQL NULL handlingCOALESCE vs IFNULLNULLIF prevent divide by zero
FOUNDATIONS-5Read guide →
Analytics Foundations (Start Here)5 min read

SQL JOINs Visualized & Avoiding the Fan-Out Trap

A visual, row-by-row guide to INNER, LEFT, FULL OUTER JOINs and how joining parent and child tables at different grains causes silent revenue duplication (the Fan-Out Trap).

SQL JOIN types explainedINNER JOIN vs LEFT JOINSQL Fan-Out Trap
FOUNDATIONS-4Read guide →
Analytics Foundations (Start Here)5 min read

Primary Keys vs. Foreign Keys Explained Simply

Understand how Primary Keys uniquely identify every row, how Foreign Keys link tables safely, when to use Surrogate Keys vs. Natural Keys, and how keys prevent orphan records.

Primary Key vs Foreign KeySurrogate Key vs Natural KeyReferential Integrity SQL
FOUNDATIONS-1Read guide →
Modern Analytical Foundations5 min read

Data Warehouse vs. Data Lake vs. Lakehouse Architecture

Clear breakdown comparing Data Warehouses, Data Lakes, and modern Delta Lakehouses, plus ETL vs. ELT pipelines and the Bronze-Silver-Gold Medallion architecture.

Data Warehouse vs Data Lake vs LakehouseETL vs ELT PipelineMedallion Architecture Bronze Silver Gold
EX-1Read guide →
Modern Analytical Foundations5 min read

OLTP vs. OLAP: Parquet & Delta Lake Columnar Mechanics

Discover why PostgreSQL stores rows together while Parquet/Delta stores columns together—and how column pruning, dictionary encoding, and min/max statistics make analytics 50x faster.

OLTP vs OLAP DatabaseApache Parquet Columnar StorageRow-Oriented vs Column-Oriented
EX-1Read guide →
Enterprise Dimensional Modeling5 min read

The Ralph Kimball Dimensional Architecture: Facts, Dimensions & Grain

Master Ralph Kimball's Star Schema methodology: choosing Fact grain, separating Facts (events/numbers) from Dimensions (who/what/where/when), Conformed Dimensions, and the 3 types of Fact tables.

Kimball Dimensional ModelingStar Schema vs Snowflake SchemaFact Table vs Dimension Table
EX-2Read guide →
Enterprise Dimensional Modeling6 min read

Slowly Changing Dimensions (SCD Types 0 through 7) in Delta Lake

A complete beginner-to-architect guide to Slowly Changing Dimensions (SCD Types 0 through 7) with real timeline tables, Delta Lake MERGE SQL patterns, and how to report historical facts honestly.

Slowly Changing Dimensions SCDSCD Type 1 vs SCD Type 2SCD Types 0 through 7
EX-2Read guide →
Lakehouse Optimization & Engine Mechanics5 min read

Databricks Liquid Clustering vs. Hive Directory Partitioning

Stop hurting Lakehouse performance with over-partitioning! Understand the Small File Problem, legacy Z-Ordering, and why Delta Lake Liquid Clustering (CLUSTER BY) simplifies petabyte-scale data layout.

Delta Lake Liquid ClusteringHive Partitioning Small File ProblemZ-Order Optimization Databricks
EX-1Read guide →
Lakehouse Optimization & Engine Mechanics5 min read

The Grain as a Contract: Idempotency & Financial Balance Snapshots

Why defining 'what one row represents' (Grain) is the #1 rule in analytics—how grain drift causes duplicate KPI inflation, why SELECT DISTINCT hides bugs, and how to prove grain in SQL.

Data Grain DefinitionFact Table GranularitySQL Duplicate Rows Prevention
EX-1Read guide →
Governance, Contracts & Regulatory Compliance5 min read

Bitol Open Data Contract Standard (ODCS v3.0.2) in Practice

Learn how Open Data Contracts (Bitol ODCS v3.0.2 YAML) turn brittle data pipelines into versioned, CI/CD-tested software agreements between backend producers and analytics consumers.

Open Data Contract Standard ODCSBitol ODCS v3.0.2 YAMLData Contracts Data Engineering
EX-25Read guide →
Governance, Contracts & Regulatory Compliance5 min read

BCBS 239 & Regulatory Traceability: Auditable Source-to-Target (S2T)

Understand Basel Committee BCBS 239 data traceability principles in plain English—building auditable Source-to-Target (S2T) documentation, column lineage, and ingestion metadata columns.

BCBS 239 Data LineageSource to Target S2T MappingColumn Level Data Lineage
EX-10Read guide →
Governance, Contracts & Regulatory Compliance5 min read

ISO 8000 Data Quality Engineering: Assertions, Nulls & Drift

Practical beginner guide to ISO 8000-61 Data Quality Engineering—implementing Completeness, Syntactic Accuracy, Semantic Accuracy, Consistency, Uniqueness, and Timeliness checks in SQL and Delta pipelines.

ISO 8000-61 Data Quality6 Dimensions of Data QualityData Quality SQL Assertions
EX-16Read guide →
Distributed Compute & FinOps Optimization5 min read

Distributed Compute Mechanics: Spark Memory Overhead, Cores & Shuffles

Learn how Spark splits work across Drivers and Executors, how to size CPU cores and executor memory + 10% overhead without OOM crashes, and how to tune shuffles cleanly.

Apache Spark Executor SizingSpark Memory Overhead CalculationSpark Shuffle Spill Optimization
EX-1Read guide →
Modern Analytical Foundations5 min read

Two-Fact Dimensional Modeling: Inventory Listings vs. Transactional Sales

Master two-sided marketplace modeling (TICKIT, StubHub, Airbnb): separating Listing inventory supply from Sales settlements cleanly so you avoid Chasm Trap duplication.

Two-Fact Dimensional ModelingChasm Trap SQL PreventionListing vs Sales Fact Table
TICKIT-01Read guide →
Dimensional Modeling & Relational Integrity5 min read

Role-Playing Dimensions & Bridge Tables in Lakehouse Architecture

Learn what a Role-Playing Dimension is in plain English—connecting one dim_user or dim_date table twice (Buyer vs Seller, Order Date vs Ship Date) using clean SQL aliases without attribute collisions.

Role-Playing Dimension SQLSame Dimension Joined TwiceSQL Table Aliasing Best Practices
TICKIT-04Read guide →
Dimensional Modeling & Relational Integrity5 min read

SCD Type 2, Junk and Bridge Dimensions in Practice

Solve two tricky modeling puzzles cleanly: grouping scattered boolean flags into Junk Dimensions, and modeling many-to-many relationships (e.g., user hobbies or multiple promo tags) with Bridge Tables + allocation weights.

Bridge Table Many to Many DimensionJunk Dimension Low Cardinality FlagsSCD Type 2 vs Bridge Table
TICKIT-03Read guide →
Analytical SQL & Performance Optimization5 min read

Inventory Aging, Sell-Through & Marketplace Funnel Analytics

Build reliable marketplace funnel KPIs (Sell-Through Rate, Inventory Aging Buckets, Unsold Deadstock) cleanly in SQL without dropping zero-sale listings or causing divide-by-zero errors.

Marketplace Sell-Through Rate SQLInventory Aging Buckets SQLUnsold Inventory Metrics
TICKIT-06Read guide →
Lakehouse Engineering & Delta Architecture5 min read

Migrating Redshift TICKIT to a Governed Delta Lakehouse

Translating classic Amazon Redshift physical tuning concepts (DISTKEY, SORTKEY, ENCODE, VACUUM) into modern Delta Lake & Unity Catalog Lakehouse equivalents—plus enabling Change Data Feed (CDF).

Redshift to Databricks MigrationDISTKEY vs Liquid ClusteringSORTKEY vs Data Skipping
TICKIT-09Read guide →
Graph Analytics & Fraud Investigation5 min read

Marketplace Social Graph & Fraud Detection in Relational SQL

You don't always need Neo4j for social graphs & fraud rings! Learn how to traverse multi-hop friendships, eliminate AB/BA mirrored duplicates with LEAST/GREATEST, and flag shared-account fraud using pure SQL.

SQL Graph TraversalFriend of a Friend SQL QueryEliminate Mirrored Pairs LEAST GREATEST
TICKIT-13Read guide →