Scenario SQL Question
Advanced Join Performance Analysis
Build mastery in Joins with this scenario-based SQL challenge and live execution support.
Problem Statement
Produce a single result combining department-level and job-level aggregates. For each, return analysis_type ('Department Analysis' / 'Job Analysis'), category (department_name or job_title), total_count (# of employees), avg_value (rounded 2). Departments with zero employees still appear (count 0, avg 0). Order by analysis_type, category.
Relevant Tables
departmentsjobsemployees
SQL Concepts Used in This Scenario
Strengthen your understanding with these targeted learning topics: