Hello All,
I am having a problem with a SQL query trying to pull information from a new data class with a few joins by guid.
SELECT [_id]
,vU.Name
,vU.[Given Name]
,vU.Guid AS 'USER GUID'
,RA.ParentResourceGuid
,RA.ChildResourceGuid
,[Manufacturer]
,[Product Name]
,[Version]
,[License Key]
,[Qty]
,[Misc Info]
,[Ticket Number]
,[Download Information]
FROM ResourceAssociation AS RA
JOIN [Symantec_CMDB2].[dbo].[Inv_Software_License_Key_Data] AS INV
ON RA.ChildResourceGuid = INV._ResourceGuid
JOIN vAssetUser AS vU
ON RA.ParentResourceGuid = vU.Guid
ORDER BY vU.[Name] ASC
With the query it is retrieving the information that I want, but it appears to be missing some information, for example. I created a user called "Available" this is a special user that is basically a holding spot for information. The new data class [Inv_Software_License_Key_Data] consists of license key's for software. This is stictly a static data entry point. Software Key information is entered for historical value.
For the query above the users name 'Available' does not show up... If I look directy at the dbo I can verify the user guid exists. If I look in the console the user 'Available' has Software Key data entered. There is a disconnect somewhere. As vU I have tried vAssetUser, vUser. If I LEFT JOIN vUser I will retrive results with 'Available' user but the [Inv_Software_License_Key_Data] data is NULL.
Any thoughts?