SQL Practice Logo

SQLPractice Online

Scenario SQL Question

Count Distinct Departments with Employees

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

Problem Statement

Count how many different departments actually have employees assigned.

Relevant Tables

employees

SQL Concepts Used in This Scenario

Strengthen your understanding with these targeted learning topics: