TASK #200 · MediumCustomers with no purchases disappeared from the report
Your brief
The report must show every customer and their order total, including those who
have not bought anything yet: those should show 0.
Customers with no orders never made it into the report.
Output name (customer name) and total_amount (their order total).
Customers with no orders never made it into the report.
Output name (customer name) and total_amount (their order total).
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