FastPrepDepartments Without Employees
Problems/Departments Without Employees

Departments Without Employees

Dell Technologies logoDell Technologies● EasyFULLTIMEPHONE SCREEN

Updated Nov 2026

QuestionConstraints

Problem statement

Source note: Reported in a Dell Technologies phone screen. The report asks for departments with no employees. We chose the table keys, employees who may have no department, the output columns, the ordering, the test data, and the languages you can use. Our version is about 85% the same as the reported question.

Return every department that currently has no employees assigned to it.

The departments table contains the complete department catalog. The employees.department_id field is nullable for employees who have not yet been assigned. Return each unstaffed department's ID and name in ascending department-ID order.

Table schema

MySQLPostgreSQLPandas

Use the same input data with any supported language. Open the Schema tab in the editor to see the generated SQL setup or Pandas DataFrames.

departments

ColumnTypeNullableDescription
department_idPKIntegerNo—
department_nameTextNo—

employees

ColumnTypeNullableDescription
employee_idPKIntegerNo—
employee_nameTextNo—
department_idIntegerYes—

Foreign key: department_id → departments(department_id)

Expected result

Your query or function must return these columns.

ColumnTypeNullableDescription
department_idIntegerNo—
department_nameTextNo—

Row order: must match exactly. Numeric tolerance: 0.

Constraints

  • Department IDs and employee IDs are unique positive integers.
  • Every non-null employee department ID references an existing department.
  • Department names are nonempty.
  • There may be departments or employees with no matching assignment.

More Dell Technologies interview questions

  • Find All Pythagorean TripletsPHONE SCREEN · Seen Oct 2026
  • First Non-Repeated CharacterPHONE SCREEN · Seen Oct 2026
  • Count Binary SubstringsOA · Seen May 2025
  • Optimizing Resource AllocationOA · Seen May 2025

Similar questions at other companies

  • Second Highest SalaryPaytm · PHONE SCREENPaytm interview questions
  • Employees Who Earn More Than Their ManagersNykaa · PHONE SCREENNykaa interview questions
  • Employees Who Joined More Than a Week AgoNewgen Software · PHONE SCREEN
  • Second-Highest Distinct SalaryChubb · PHONE SCREENChubb interview questions
  • Swap Two Gender ValuesInfosys · PHONE SCREENInfosys interview questions
  • Find Rows Common to Two TablesSalesforce · PHONE SCREENSalesforce interview questions
  • Count Records Present in A but Not BCapital One · PHONE SCREENCapital One interview questions
  • Customer Order Count Distribution by CountryApple · PHONE SCREENApple interview questions
  • Employees Earning More Than Their ManagerMygate · PHONE SCREENMygate interview questions
  • Classify Tree Nodes with SQLOracle · PHONE SCREENOracle interview questions
All Dell Technologies interview questionsSee Dell Technologies hiring insights