SQL Docs
SQL referenceCore SQLFunctionsJoinsWindow functions

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

Core topics

  • SELECT, FROM, WHERE, and filtering semantics
  • JOIN patterns for fact and dimension tables
  • window functions like ROW_NUMBER, RANK, and DENSE_RANK
  • NULL handling, COALESCE, and boolean logic
  • aggregation, grouping, and ordering strategies

Best practices

  • prefer explicit ORDER BY when 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

On this page