Quantcast
Channel: THWACK: Popular Discussions - Orion SDK
Viewing all articles
Browse latest Browse all 3719

swql full outer join?

$
0
0

Is a full outer join possible in swql?

 

(Full disclosure, I'm probably a C-student in  SQL intermediate class on a good day...)

Trying to get at alert history for purposes of alert integration with another tool.  The following query is exactly what I need but unfortunately in SWQL, it doesn't appear to support FULL OUTER JOINs

 

SELECT        AlertHistory.AlertHistoryID, AlertHistory.AlertActiveID, AlertHistory.EventType AS EventTypeID,                         CASE AlertHistory.[EventType] WHEN 0 THEN 'Triggered' WHEN 1 THEN 'Reset' WHEN 2 THEN 'Acknowledged' WHEN 3 THEN 'Note' WHEN 4 THEN 'AddedToIncident' WHEN 5 THEN 'ActionFailed' WHEN 6 THEN                          'ActionSucceeded' WHEN 7 THEN 'Unacknowledge' WHEN 8 THEN 'Cleared' ELSE 'Unknown' END AS EventType, AlertObjects.RelatedNodeCaption, AlertObjects.EntityNetObjectId, AlertConfigurations.Severity,                         AlertHistory.Message, AlertHistory.TimeStamp, AlertObjects.AlertID, AlertStatusView.AlertMessage, AlertHistory.AlertObjectID, AlertConfigurations.ObjectType, AlertObjects.EntityCaption
FROM            AlertConfigurations INNER JOIN                         AlertObjects ON AlertConfigurations.AlertID = AlertObjects.AlertID FULL OUTER JOIN                         AlertStatusView ON AlertObjects.AlertObjectID = AlertStatusView.AlertObjectID FULL OUTER JOIN                         AlertHistory ON AlertObjects.AlertObjectID = AlertHistory.AlertObjectID
WHERE        (AlertHistory.EventType = 0) OR                         (AlertHistory.EventType = 1)
ORDER BY AlertHistory.AlertHistoryID DESC

Viewing all articles
Browse latest Browse all 3719

Trending Articles



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