Viewing 5 posts - 1 through 6 (of 6 total)
HanShi (7/15/2013)
July 15, 2013 at 1:16 am
OK, it seems i must have confused the whole thing. I managed to just solve it
SELECT MeterID, COUNT(TimeStamp) AS Count, SUM(WattHours) AS WattHours, MONTH(TimeStamp) AS...
July 5, 2013 at 12:10 am
each meter report watthours every 30mins, so in a 30 day month there are 1440 entries. 😀
So i Count the TimeStamp colum to get 1440.
Sorry i did a really bad...
July 4, 2013 at 11:53 pm
Thank you for your response 😀
I tried Adding the Month to the Group by, and now its returning
Meter ID ...
July 4, 2013 at 9:42 pm
Oh im a idiot :doze:
Amend my previous.
SELECT MeterID, COUNT(TimeStamp) AS Count, SUM(WattHours) AS WattHours
FROM dbo.NewvMData
GROUP BY MeterID
HAVING ...
July 4, 2013 at 1:14 am
Viewing 5 posts - 1 through 6 (of 6 total)