SELECT TOP 92 PERCENT
Convert(DateTime,Floor(Cast((DateTime) as Float)*24)/24,0) AS SummaryDateTime,
MIN(APM_ApplicationAvailability.PercentAvailability) AS MIN_of_ApplicationAvailability,
Nodes.Caption AS NodeName
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 40907 AND 41205 )
AND
(
(APM_AlertsAndReportsData.ApplicationName LIKE '%HTTP%') AND
(Nodes.Caption = 'www.example.com')
)
GROUP BY Convert(DateTime,Floor(Cast((DateTime) as Float)*24)/24,0),
Nodes.Caption
ORDER BY SummaryDateTime ASC
上面的查询给了我以下结果,作为图像附加。
我想编写一个查询来过滤掉所有0.00%
结果,所以它只会给出0.00%
数据,因为我不关心100%
数据。我不知道如何过滤数据。