SQL Syntax
SQL Syntax
TRUNCATE TABLE: Deletes all rows from a table but keeps its structure.
TRUNCATE TABLE table_name;
Joining Tables
LEFT JOIN: Returns all records from the left table and matching records from the right
table.
RIGHT JOIN: Returns all records from the right table and matching records from the left
table.
FULL JOIN: Returns all records when there is a match in either left or right table.
4. Modifying Data
NB/-
Aggregating Data
GROUP BY: Groups rows with the same values in specified columns.