TASK #194 · MediumThe 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).
Every employee must appear, with 0 for those who sold nothing.
Output name (employee name) and total_amount (their order total for 2024).
Ctrl / ⌘ + ↵
Result
Write a query and run it to see the results.
Schema
departmentsid, nameemployeesid, name, department_id, manager_id, salary, hired_atcustomersid, name, registered_atordersid, customer_id, employee_id, amount, created_atloginsuser_id, logged_at