Hi Folks,
I am guessing there is something wrong that is easy to pin point. Can someone take a look as I think it has to do with my INNER JOIN to get the primary user?
SELECT Inv_AeX_AC_Identification.Name AS [Computer Name], pu.[User] AS [Primary User], Inv_AeX_AC_Identification.[OS Name],
Inv_AeX_AC_Identification.[OS Revision], Inv_AeX_AC_Identification.[Hardware Serial Number], Inv_Manufacturer.Model,
Inv_PGP_Status.Encrypt_Status AS [100% Encryption Status]
FROM Inv_PGP_Status INNER JOIN
Inv_AeX_AC_Identification ON Inv_PGP_Status._ResourceGuid = Inv_AeX_AC_Identification._ResourceGuid INNER JOIN
Inv_Manufacturer ON Inv_PGP_Status._ResourceGuid = Inv_Manufacturer._ResourceGuid INNER JOIN Inv_AeX_AC_Primary_User pu
ON pu._ResourceGuid = vc.Guid
WHERE (Inv_Manufacturer.Model LIKE '%nc6220%') OR (Inv_Manufacturer.Model LIKE '%nc6320%') OR (Inv_Manufacturer.Model LIKE '%6510b%')
OR (Inv_Manufacturer.Model LIKE '%6530b%') OR (Inv_Manufacturer.Model LIKE '%6455b%') OR (Inv_Manufacturer.Model LIKE '%nc6000%')
OR (Inv_Manufacturer.Model LIKE '%6465b%') OR (Inv_Manufacturer.Model LIKE '%2510p%') OR (Inv_Manufacturer.Model LIKE '%2530p%')
OR (Inv_Manufacturer.Model LIKE '%2540p%') OR (Inv_Manufacturer.Model LIKE '%2560p%') OR (Inv_Manufacturer.Model LIKE '%2570p%')
OR (Inv_Manufacturer.Model LIKE '%6475b%')
I am getting a:
Msg 4104, Level 16, State 1, Line 1
The multi-part identifier "vc.Guid" could not be bound.
Thanks.