Search ⌘K
Google
Google

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...

Foundations Track
Easy
15 min
query basics

Company labels are directional practice context, not official interview guidance.

Timer 00:00
Back to practice

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 VARCHAR(30
drug
AsterNovaRx1800.002200.00
BeaconNovaRx2400.002600.00
CitrineHealthLab5100.002400.00
DeltaCarePlus1200.001900.00
EmberCarePlus1400.002100.00
Editor
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.