Skip to content

People team

A 120-person company: departments, the reporting line, salary changes and yearly review ratings.

Query it in the playground

departments

One row per department. Key: department_id. 7 rows in the larger version, 4 in the smaller.

department_idintUnique id.
department_nametextName.
officetextMain office city.

employees

Everyone who has worked here, including people who left. Key: employee_id. 120 rows in the larger version, 45 in the smaller.

employee_idintUnique id.
full_nametextName.
department_idint, nullableDepartment. NULL for a few people between teams.
manager_idint, nullableTheir manager (an employee_id). NULL for the CEO.
job_titletextTitle.
hire_datedateFirst day.
termination_datedate, nullableLast day. NULL while employed.
salarynumeric(10,2)Current (or final) yearly salary, USD.

salary_changes

Every salary someone has had, from the day it applied. Key: employee_id, effective_on. 367 rows in the larger version, 131 in the smaller.

employee_idintThe employee.
effective_ondateFirst day of this salary.
salarynumeric(10,2)Yearly salary, USD.

reviews

Year-end review ratings. Key: employee_id, review_year. 301 rows in the larger version, 112 in the smaller.

employee_idintThe employee.
review_yearintYear reviewed.
ratingint1 (low) to 5 (high).

Questions on this database