SQL Practice Logo

SQLPractice Online

Scenario SQL Question

Conditional Salary Aggregation

Build mastery in Aggregations with this scenario-based SQL challenge and live execution support.

Problem Statement

In a single row, return the total salary cost for IT employees as it_total_salary and for non-IT employees as non_it_total_salary.

Relevant Tables

departmentsemployees

SQL Concepts Used in This Scenario

Strengthen your understanding with these targeted learning topics: