IT Technologies
SQL Cheat Sheet
SQL statements grouped by task, from SELECT and joins through aggregation, DDL, indexes, and subqueries, each with copyable example syntax.
About
Copy any snippet and swap in your own table and column names. Examples use standard SQL; a few notes flag where MySQL, PostgreSQL, or SQL Server differ. Statements tagged destructive remove data.