Menu
hardWestern Digital · joinsGlobal · hiring in AsiaBasic

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

factories
idINT
factory_nameTEXT
countryTEXT
drives
idINT
modelTEXT
factory_idINT
shipments
idINT
drive_idINT
quantityINT

Basic

The example input, expected output, and walkthrough for this question unlock with a Basic plan.

↑ Read the question

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.

See Basic plans

RM 25/mo · cancel anytime

Keep going

Company names are trademarks of their respective owners, used here only to describe practice material. mahir_data is not affiliated with, endorsed by, or sponsored by any company named on this site. Terms.