Quantcast
Viewing all articles
Browse latest Browse all 22513

SWQL Help

I am trying to create the SWQL version of a SQL report written by somebody else. This is just part of the SQL Query

SELECT   NodeID,  NodeName,   AVG( Availability) as Availability,  
DATEPART(yy,Date) as aYear, DATEPART(ww,Date) as week
FROM   (
SELECT   ResponseTime_Daily.DateTime as Date,  Nodes.NodeID AS NodeID,  Nodes.Caption as NodeName,   ResponseTime_Daily.Availability as  Availability
FROM  Nodes INNER JOIN ResponseTime_Daily ON (Nodes.NodeID = ResponseTime_Daily.NodeID)
WHERE   (Nodes.Caption LIKE '%[0-9][0-9]%') AND  ResponseTime_Daily.DateTime >= '2013'
UNION .............

I have a few questions.

In the Orion SDK table description html, i don't see any  ResponseTime_Daily, ResponseTime_Detail  or ResponseTime_Hourly table, but they are used in the hole SQL query. How this tables are accessed using SWQL?

can DATEPART be used in SWQL?

can LIKE be used in SWQL?

 

Would really appreciate any help on this.

 

Best regards,

Alberto Garcia


Viewing all articles
Browse latest Browse all 22513

Trending Articles