SQL docs
Reference patterns, function guides, and practical SQL examples for data engineering teams.
SQL reference
A practical guide to SQL syntax, functions, ranking, joins, and window patterns you can actually use in production.
Start here
Function reference
Browse the most-used SQL functions and their semantics.
SQL reference
Learn the core syntax, clauses, and query patterns.
Playground
Try snippets and compare output in real time.
Join patterns
See how table relationships are expressed in practice.
Core topics
SELECT,FROM,WHERE, and filtering semanticsJOINpatterns for fact and dimension tables- window functions like
ROW_NUMBER,RANK, andDENSE_RANK NULLhandling,COALESCE, and boolean logic- aggregation, grouping, and ordering strategies
Best practices
- prefer explicit
ORDER BYwhen rank-based logic matters - keep grouping and partition logic readable
- document edge cases before shipping reusable SQL
- test patterns in the playground before productionizing them