Hi
I need help with mysql query
select city, sum(sub.area_consumption) from (
select city, sum(amount_streetlight) / consumption as area_consumption
from MuniLEIMS.statisticalreport
group by city, area
) as sub
group by sub.city
I'm trying to calculate average consumption per area (every city has many areas)
it looks like it should work?
Sachin SinghPosted Aug 29, 2022, 4:34 AM
Rajanikant HawaldarPosted Aug 28, 2022, 12:42 PM
Nitin SontakkePosted Aug 28, 2022, 12:31 PM