Scenario SQL Question
Departments with Location and Employee Info
Build mastery in Joins with this scenario-based SQL challenge and live execution support.
Problem Statement
Show every department alongside each of its employees. Departments with zero employees still appear (with NULL employee fields). Return department_id, department_name, location, employee_id, first_name, last_name, salary — ordered by department_id, salary DESC NULLS LAST, employee_id.
Relevant Tables
departmentsemployees
SQL Concepts Used in This Scenario
Strengthen your understanding with these targeted learning topics: