RienSQL
TASK #194 · Medium

The report lost employees without orders

Your brief
A colleague sent the annual sales report for review. Everyone who closed no deals in 2024 is missing from the export: only the sellers remain.

Every employee must appear, with 0 for those who sold nothing.

Output name (employee name) and total_amount (their order total for 2024).
Expected columnsname total_amountCompany
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