I'm getting the following error when trying to create an extra JOIN.
Cannot implicitely convert from data type Guid to data type Inst32
Ignoring the spelling mistook I think I understand why. The two JOINs look like this:
JOIN Orion.NodesCustomProperties AS ncp ON nd.NodeID = ncp.NodeID
JOIN NCM.EntityPhysical AS ep ON ncp.NodeID = ep.NodeID
If I comment out the bottom one, it all works and that's because because the NodeID in ncp and ep are not compatible (I guess one is Guid and the other Inst32). One looks like 1234 and the other like: 12375e26-9d82-4437-b7c7-000d643d68cb
Abd SO my question is:
How do I JOIN in a table where I can't see a connection / similarity (e.g. NodeID)?