RienSQL
TASK #196 · Medium

The list of employees without subordinates came out empty

Your brief
You inherited this report from an analyst who left: it should list employees who have no subordinates.

The result is empty even though the company does have such employees.

Output name (employee name).
Expected columnsnameCompany
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