Hello,
Just wondering if SWQL supports the "BETWEEN" operator as I can't find any information about it.
In more details, I am creating an Alert using SWQL scripts.
In some case we need to use the "Between" comparator to get the results based any data between two numbers.
The script is accepted by the Solarwinds check in the Alert but it is not running properly.
SELECT Nodes.Caption, Nodes.NodeID FROM Nodes
LEFT JOIN Traps t ON nodes.caption = t.hostname LEFT JOIN dbo.TrapVarbinds tv ON t.TrapID = tv.TrapID WHERE t.TrapID IN ( SELECT tv.TrapID FROM dbo.TrapVarbinds tv WHERE tv.OIDValue='raised(1)' ) AND t.Tag BETWEEN '16386' and '16990'
AND t.[DateTime] > DATEADD(MI,-6,GETDATE());
Could you tell me how to do a select on t.Tag that is comprised between 16386 and 16990 in the example above ?
Regards
Christine