6. JOIN: combining tables
Este artículo se traducirá automáticamente. Por ahora se muestra en inglés.
JOIN combines rows from two tables where a column matches. INNER JOIN keeps only matches; LEFT JOIN keeps every row of the left table.
Ver ejemplo
SELECT s.name, c.title FROM students s INNER JOIN classes c ON s.class_id = c.id;