I am trying to write an SQL query to show all my interfaces that have a status of down or warning.
The following works:
SELECT InterfaceID, StatusLED, FullName, Status
FROM Interfaces
WHERE (Status = '2') OR (Status = '3')
But, I want it to exclude a node based on the condition of a second node.
e.g.
Node Names: NodeA is Up. (This is a primary link)
NodeB is Down. (This is a secondary link that fails over if the primary link goes down)
If NodeA is UP exclude NodeB from the Query.
Any suggestions ?
Thanks,
Richard