How can we preserve every department while matching employees?
A RIGHT JOIN preserves all rows from the right table regardless of whether a match exists on the left.
Department-centric audits, ensuring every department appears in the roster even if empty.
SELECT e.name, d.department_name
FROM employees e
RIGHT JOIN departments d
ON e.department_id = d.department_id;Practice typing production-grade SQL code for RIGHT JOIN.