Skip to main content
Admissions guidance, study banks, and career tools — get started on Shalyam

Highest Consumption Month per Meter

Using the Consumption table, return each meter and the month with its highest kWh. Order by meter.

Table schema

Consumption(meter_id INT, month CHAR(7), kwh INT)

Sample data

Consumption
meter_id | month | kwh
1 | 2026-02 | 120
1 | 2026-03 | 60
2 | 2026-02 | 60
2 | 2026-03 | 90
3 | 2026-03 | 250

Discussion

No discussions yet.

Rewards · v2.1

Get Exclusive Insights with Every Issue

Join Shalyam Newsletter

Stay ahead in education, research, and innovation—straight to your inbox.