Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
SELECT S.CM_NAME, D.CTI_MTRID, D.Year, D.Week, D.KW/1000 AS MW, D.KVAR/1000 AS MVAR, D.DayOfYear, D.Month, D.Day, D.Hour, D.DayOfWeek
INTO SubWeeklyT
FROM (StationDaylyPeaksT AS D
INNER JOIN MV90SubKeys AS S ON D.CTI_MTRID = S.CM_CUSTID)
INNER JOIN (SELECT CTI_MTRID, [Year], Week, Max(KW) AS MaxKW
FROM StationDaylyPeaksT GROUP BY CTI_MTRID, [Year], Week
) AS M ON D.CTI_MTRID = M.CTI_MTRID AND D.Year = M.Year AND D.Week = M.Week AND D.KW = M.MaxKW
ORDER BY S.CM_NAME, D.Year, D.Week