Trying to do what I thought would be a straightforward SWQL for a Proportional Widget, but stuck when trying to add a condition to what servers are included. Trying to use a Custom property to filter which servers are included in Status count by joining the Orion.NodesCustomProperties and Orion.Nodes tables and receive the error Entity Orion not found in FROM clause for navigation property Orion.Nodes.NodeID.
My SWQL query knowledge is beginner level at best, and I have to admit I am lost on how Alias relationships are defined. I am sure this is an asy fix for an expert so any assistance is appreciated.
SELECT
COUNT(NodeID) as value,
Orion.Nodes.Status as status,
Orion.NodesCustomProperties.App_Function
FROM Orion.Nodes
Join Orion.NodesCustomProperties
ON Orion.Nodes.NodeID=Orion.NodesCustomProperties.NodeID
GROUP BY status
HAVING Orion.NodesCustomProperties.App_Function LIKE '%Domain Controller%'
ORDER BY value DESC
--Error Entity Orion not found in FROM clause for navigation property Orion.Nodes.NodeID