Get to know the data
JOIN revisited
LEFT JOIN
RIGHT JOIN
14. RIGHT JOIN again
FULL JOIN
OUTER JOINS
Aliases for tables

Instruction

Very nice! Let's do one more exercise.

Exercise

Show the room each student is assigned to. Show all students, even those who are not assigned to any room. Use a RIGHT JOIN.

Stuck? Here's a hint!

Type:

SELECT
  *
FROM Room
RIGHT JOIN Student
  ON Student.RoomID = Room.ID;