Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What does an INNER JOIN do?
Think about how it filters records.
Explain what a LEFT JOIN does.
Remember, unmatched records from the right will show NULLs.
What type of join returns records with matching values in both tables?
Focus on matching values.
True or False: A LEFT JOIN will always return rows even if there are no matches in the right table.
Consider what happens to unmatched records.
Given two tables: 'students' (id, name) and 'enrollments' (student_id, course_id), write a query using LEFT JOIN to select all students and their enrolled courses. Include students not enrolled in any course.
Remember to include all students, regardless of their enrollment status.
Using RIGHT JOIN, write a query to find all courses and the students enrolled in them, including courses with no students enrolled.
Focus on ensuring all courses are listed.
5 more questions in this section. Enroll free to practise them all.
Enroll free