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.

عرض المثال

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

← العودة إلى الدورة