Total shipped, joined across three tables
Western Digital stores drives, the factories that make them, and shipment records in three separate tables. For each drive model, return its name, its factory's name, and the total quantity shipped so far.
Drives that haven't shipped yet should still appear, with a total of 0.
Return model, factory_name, and total_shipped.
Schema
| id | INT |
| factory_name | TEXT |
| country | TEXT |
| id | INT |
| model | TEXT |
| factory_id | INT |
| id | INT |
| drive_id | INT |
| quantity | INT |
Basic
The example input, expected output, and walkthrough for this question unlock with a Basic plan.
Basic
The reference solution and walkthrough for this question unlock with a Basic plan.
Basic
This is a Basic question
Premium practice questions unlock with a Basic plan. The full solution, expected output, and grading are available to Basic members.
RM 25/mo · cancel anytime