A printable SQL reference laid out as tables. It walks from basic SELECT structure, DDL and DML through every join type, aggregates, window functions and frame specs, subqueries and CTEs, set operations, PIVOT, conditional logic, string, date and numeric...
More
A printable SQL reference laid out as tables. It walks from basic SELECT structure, DDL and DML through every join type, aggregates, window functions and frame specs, subqueries and CTEs, set operations, PIVOT, conditional logic, string, date and numeric functions, NULL handling, constraints, indexes, views, transactions and JSON functions.
There's also a table on logical query execution order, which explains most of the "why doesn't this work" moments.
27 tables, 190 entries, and every page links back to the online version.
Free to read online, with the rest of the library: https://www.cheatgrid.com/databases/0293-sql-cheat-sheet
Less