Currently my db table has dailTotal values for every single day, I need to get these grouped into weekly totals.
Is it possible to add the daily totals up into weekly totals and display a row each weekly total between the given date range.
Im not quite sure where to start with this one. My current query to get is by day is:
SELECT dailyTotal
FROM energyUsage
WHERE meterIdentifier = '1300011505120'
AND startTime >= '2017-01-01 00:00:00'
AND startTime <= '2017-12-31 00:00:00';