Hi all,
A little stuck on SQL here...
I have this.....
SELECT TOP 10000 Nodes.Caption AS NodeName,
APM_AlertsAndReportsData.ApplicationName AS Application_Name,
APM_ApplicationAvailability.PercentAvailability AS ApplicationAvailability
FROM
(Nodes INNER JOIN APM_AlertsAndReportsData ON (Nodes.NodeID = APM_AlertsAndReportsData.NodeId)) INNER JOIN APM_ApplicationAvailability ON (APM_AlertsAndReportsData.ApplicationId = APM_ApplicationAvailability.ApplicationID)
WHERE
( DateTime BETWEEN 42276 AND 42306.9999884259 )
AND
(
(APM_AlertsAndReportsData.ApplicationName = 'IPFX Service Manager') OR
(APM_AlertsAndReportsData.ApplicationName = 'Google http test') OR
(
(Convert(Char,DateTime,108) >= '08:00') AND
(Convert(Char,DateTime,108) = '18:00') AND
(DATEPART(weekday, DateTime) >= 2) AND
(DATEPART(weekday, DateTime) <= 6))
)
ORDER BY 1 ASC
However this gives me all the data. I really just need 1 monthly average and not the 2000 results it bring back.
Any one have any idea?
TIA,
Grant