Starlit Daily

📚 › SQL: databases

6. JOIN: combining tables

JOIN combines rows from two tables where a column matches. INNER JOIN keeps only matches; LEFT JOIN keeps every row of the left table.

Show example

SELECT s.name, c.title FROM students s INNER JOIN classes c ON s.class_id = c.id;

← Back to course