Quantcast
Channel: THWACK: All Content - All Communities
Viewing all articles
Browse latest Browse all 20202

Convert SQL query to SWQL

$
0
0

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


Viewing all articles
Browse latest Browse all 20202

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>