PostgreSQL - Joins in PostgreSQL
Find the problem in this query:
Given that some employees have no matching department.
SELECT d.name, e.name FROM departments d RIGHT JOIN employees e ON d.id = e.dept_id ORDER BY d.name;Given that some employees have no matching department.
