Foundations Track · Easy · 15 min
Loss-Making Drug Totals
Google wants a operations review for loss-making drug totals. Return each manufacturer with the number of loss-making drugs and the total absolute loss. Sort...
Company labels are directional practice context, not official interview guidance.
Objective
Practice query basics through a Google-tagged business scenario.
Approach
Use this track to lock in clean query structure, basic filtering logic, and confidence with grouped output.
Company context
Company labels are directional practice context, not official interview guidance.
Google wants a operations review for loss-making drug totals. Return each manufacturer with the number of loss-making drugs and the total absolute loss. Sort by total_loss descending, then manufacturer.
pharmacy_sales
| drug | |||
|---|---|---|---|
| Aster | NovaRx | 1800.00 | 2200.00 |
| Beacon | NovaRx | 2400.00 | 2600.00 |
| Citrine | HealthLab | 5100.00 | 2400.00 |
| Delta | CarePlus | 1200.00 | 1900.00 |
| Ember | CarePlus | 1400.00 | 2100.00 |
SQL workspace
Run queries against the protected question data, then submit once the result shape looks right.
Sign in to run SQL
Create a free account or sign in before running queries against protected question data.