Analytical SQL

Analytical SQL and Data Warehouses

Analytical questions, such as which genres sell best where, read BookNest's sample orders very differently from the app that wrote them. This chapter covers the engines and SQL built for them, from column-store internals and PostgreSQL 18 1,289 through DuckDB 61,228 , dimensional modeling and dbt 37,942 to cloud warehouses and ClickHouse 29,491 .

LAMP Stack Development taught SQL in depth with MySQL 524 ; this chapter assumes it and teaches only what analytics adds. Everything runs on the 4-CPU WSL2 6 host; paid cloud warehouses are described from documentation, "not run here."

What you will learn:

Sections