Hi,
I need to convert below SQL query to SWQL. I want to count the number of components in the applications which are down.
SELECT TOP 10000 Nodes.NodeID AS NodeID,
Nodes.Caption AS NodeName,
APM_AlertsAndReportsData.ApplicationName AS Application_Name,
APM_AlertsAndReportsData.ApplicationStatus AS Application_Status,
COUNT(APM_AlertsAndReportsData.ComponentName) AS COUNT_of_Component_Name,
APM_AlertsAndReportsData.ComponentStatus AS Component_Status
FROM
Nodes INNER JOIN APM_AlertsAndReportsData ON (Nodes.NodeID = APM_AlertsAndReportsData.NodeId)
GROUP BY Nodes.NodeID, Nodes.Caption, APM_AlertsAndReportsData.ApplicationName, APM_AlertsAndReportsData.ApplicationStatus, APM_AlertsAndReportsData.ComponentStatus