SQL Cheat Sheet
SQL Cheat Sheet
Here's a concise SQL Cheat Sheet with key keywords and their meanings, great for exam
revision:
🔄 Joins
`INNER JOIN`: Matches records in both tables.
`LEFT JOIN`: All records from left, matched from right.
`RIGHT JOIN`: All from right, matched from left.
`FULL JOIN`: All records when there's a match in either table.
📐 Functions
Aggregate: `COUNT()`, `SUM()`, `AVG()`, `MIN()`, `MAX()`
String: `UPPER()`, `LOWER()`, `LENGTH()`, `SUBSTRING()`
Date: `NOW()`, `CURDATE()`, `DATEDIFF()`
Would you like this formatted as a printable PDF or image for easier revision?
Printed using ChatGPT to PDF, powered by PDFCrowd HTML to PDF API. 1/1