RienSQL
TASK #197 · Easy

The salary review list picked up extra people

Your brief
The report collects candidates for a salary review: employees of departments 4 and 1 who earn more than 140000.

The list picked up extra people: employees of department 4 earning below the threshold. For department 1 the threshold works correctly.

Output name (employee name) and salary (their salary).
Expected columnsname 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