Database
MySQL Complete Notes
SQL queries, data types, constraints, joins and more.
22 pagesMay 22, 2025
Basic Query Structure
SELECT column1, column2
FROM table_name
WHERE condition;
Types of Joins
- INNER JOIN
- LEFT JOIN
- RIGHT JOIN
- FULL OUTER JOIN
Constraints
- PRIMARY KEY
- FOREIGN KEY
- NOT NULL
- UNIQUE