Hi all,
I am trying very hard to learn SWQL for the SDK API. I have a SQL query that works and can not figure out how to get the same to work with SWQL. I join and get Nodes already exists. So I am not getting something very basic about SWQL I think. I am now looking to just run strait SQL and give up. So if there is anyone that can take a look at this and tell me the proper way to run it in SWQL?
SELECT SUM(RawStatus) as TotalWatts FROM CustomPollers
INNER JOIN CustomPollerAssignment ON CustomPollerAssignment.PollerID = CustomPollers.PollerID
INNER JOIN CustomPollerStatus ON CustomPollerStatus.CustomPollerAssignmentID = CustomPollerAssignment.CustomPollerAssignmentID
INNER JOIN NodesData ON NodesData.NodeID = CustomPollerAssignment.NodeID
WHERE UniqueName LIKE '%watts%' AND GroupName LIKE '%APC%' AND SysName LIKE '%XXX%' AND SysName NOT LIKE '%XXX%'