Search ⌘K
Google
Google

Analytics Reporting Track · Hard · 35 min

Power Usage Outliers

Infrastructure wants to flag racks with unusual power spikes. Return rack_id, usage_date, kilowatt_hours, and the rack_average rounded to two decimals for ro...

Analytics Reporting Track
Hard
35 min
query basics
aggregation
joins

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 train on SQL that mirrors day-to-day analytics workflows and recurring reporting asks.

Company context

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

Prereq: query basics
Prereq: filtering
Prereq: aggregation
Prereq: date functions

Infrastructure wants to flag racks with unusual power spikes. Return rack_id, usage_date, kilowatt_hours, and the rack_average rounded to two decimals for rows where kilowatt_hours is more than 150 percent of that rack's average usage. Sort by rack_id, then usage_date.

daily_power_usage
rack_id INT
usage_date DATE
kilowatt_hours NUMERIC(10
2
rack_idusage_datekilowatt_hours2
12024-06-01110.00
12024-06-02115.00
12024-06-03210.00
22024-06-0180.00
22024-06-0282.00
22024-06-0385.00
32024-06-0160.00
32024-06-02140.00
32024-06-0365.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.