Square (Block) logoSquare (Block)
CodingMembers

Headcount Per Department Including Empty Ones

Members only

A SQL aggregation question with a classic trap: the report must cover every department, not just the ones that appear in the employee data. It tests join direction and how aggregates treat missing values.

SWE
DS
sql
database
medium
Frequency
Single report
Last asked
—
Stage
tech-screen

Members get

  • Full problem statement
  • 3 progressive hints
  • Step-by-step approach
  • Full solution with code
  • 3 common pitfalls
  • 6 talking points
  • 4 follow-up questions with answer directions
  • Preparation drills

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...