SELECT Interfaces.InterfaceID AS NetObjectID, Interfaces.FullName as Name
FROM Interfaces
------------------------------------------------------------------------------------------------------------------
JOIN Nodes nod ON nod.NodeID=Interfaces.NodeID
JOIN ContainerMemberSnapshots sn ON sn.EntityID=nod.NodeID
JOIN Containers co ON co.ContainerID=sn.ContainerID
JOIN StatusInfo st ON Interfaces.OperStatus=st.StatusId
WHERE Interfaces.OperStatus<>1
AND co.name IN ('GRP001','GRP002')
ORDER BY co.ContainerID
This should work, but when the same interface (or node) is a member of more groups, it will trigger only once.
Clik here to view.
