0
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
上面的查詢給我下面的結果,附加爲圖像。 SQL查詢過濾出匹配結果
我想編寫一個查詢過濾掉所有0.00%
結果,因此它只是只給出0.00%
數據,因爲我不關心100%
數據。我不知道如何過濾數據。
對不起,我已經更新了我的問題有些部分缺失..抱歉.. – Satish
只需添加缺少的一部分以上我的回答 – RichardTheKiwi
您發佈了兩個查詢我應該使用哪一個? – Satish