if notinthe spellingdavayassqlcode
1)------------------------------------------------------------
SELECT DISTINCT NodeID, Caption
FROM Nodes
Where NodeID not in (SELECT Nodes.NodeID FROM Nodes, APM_CurrentStatusOfApplication
Where Nodes.NodeID = APM_CurrentStatusOfApplication.NodeID and
APM_CurrentStatusOfApplication.ApplicationName LIKE '%Test%' )
and Vendor like '%Windows%'
2)------------------------------------------------------------
SELECT DISTINCT Nodes.NodeID as NodeID, Caption
FROM Nodes, APM_CurrentStatusOfApplication
Where Nodes.NodeID = APM_CurrentStatusOfApplication.NodeID
and Nodes.NodeID notin (SELECT Nodes.NodeID FROM Nodes, APM_CurrentStatusOfApplication
Where Nodes.NodeID = APM_CurrentStatusOfApplication.NodeID and
APM_CurrentStatusOfApplication.ApplicationName LIKE '%Test%' )
and Nodes.Vendor like '%Windows%'
---------------------------------------------------------------