RienSQL
TASK #206 · Hard

The raise list is missing people

Your brief
In every department, employees on the two lowest pay levels get a raise. A pay level is a salary amount: people who earn the same are on the same level.

The support department (id 4) complained: Roman Fedorov is entitled to the raise but is not on the list.

Output name (employee name), department_id (department id) and salary (their salary).
Expected columnsname department_id salaryCompany
SQL editor
SQLite
Ctrl / ⌘ + ↵
Result

Write a query and run it to see the results.

Schema
departmentsid, name
employeesid, name, department_id, manager_id, salary, hired_at
customersid, name, registered_at
ordersid, customer_id, employee_id, amount, created_at
loginsuser_id, logged_at