On January 21th at 14:15 UTC , progression through exercises will be unavailable for 10 minutes due to a planned maintenance break.
Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
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;