So I have this query:
SELECT CPS.NodeID, N.Caption, N.IPAddress, CPS.Status AS SerialNumber, N.Vendor, N.Location, N.Contact, N.IOSVersion, N.MachineType, N.NodeDescription, N.LastBoot
FROM Orion.NPM.CustomPollerStatusOnNode AS CPS
JOIN Orion.Nodes N ON CPS.NodeID = N.NodeID
WHERE CPS.DisplayName LIKE '%Module Level1%'
Which, although ugly, it works.
But I also need to pull some date from the Orion.NodesCustomProperties table and having only just got my head around JOINing one table in, I have no idea how to JOIN another one in - and t'internet is just hurting my brain at present.
I can see that 'NodeID' is common across all 3 if that helps?
Suggestions please?