RienSQL
TASK #103 · Easy · Sberbank

Salary higher than the manager's

Your brief
Display a list of names of employees receiving a salary greater than that of their immediate chief.
Expected columnsnameSberbank
SQL editor
SQLite
Ctrl / ⌘ + ↵
Result

Write a query and run it to see the results.

Schema
Departmentid, name
Employeeid, department_id, chief_id, name, salary