Hi All,
I am creating a custom report for availability of some of our nodes but I'm finding different results from what I get using below query and what I get from the front end. Any idea on what could be causing this? or, which one do I trust?
SELECT AARD.ApplicationName, AVG(CONVERT(FLOAT,ADCA.PercentAvailability*1.000))
FROM APM_AlertsAndReportsData AARD, APM_DailyComponentAvailability ADCA
where AARD.ApplicationID = ADCA.ApplicationID
and (datetime >= DATEADD(month, -1, getdate()) AND datetime < getdate())
AND AARD.ApplicationID = 55--57,28,59,55,48,29)
GROUP BY AARD.ApplicationName ORDER BY AARD.ApplicationName ASC;
This is with the query, calculating the availability for this month so far gives me a result of 99.94%
However from the front-end it always looks 100%