Scenario SQL Question
Job Salary Range Analysis
Build mastery in Joins with this scenario-based SQL challenge and live execution support.
Problem Statement
For each job, compare the configured salary range (min_salary, max_salary) with the actual range of employees holding that job (actual_min, actual_max). Return job_id, job_title, employee_count, min_salary, max_salary, actual_min, actual_max — ordered by employee_count DESC, job_id.
Relevant Tables
jobsemployees
SQL Concepts Used in This Scenario
Strengthen your understanding with these targeted learning topics: