Hi,
Can someone tell me what is wrong with my JOINS as I think that is preventing this query from executing.
SELECT DISTINCT vComputer.Name AS 'Computer Name', vComputer.[IP Address], vComputer.[OS Name], vComputer.[OS Revision], vComputer.[System Type], vHWComputerSystem.Manufacturer,
vHWComputerSystem.Model, vHWComputerSystem.[Identifying Number] AS 'Serial Number', vHWProcessor.Model AS 'Processor',
vHWComputerSystem.[Total Physical Memory (Bytes)] / 1048576 AS 'RAM (MB)', vComputer.[User] AS 'Primary Owner'
FROM CollectionMembership INNER JOIN vComputer ON CollectionMembership.ResourceGuid = vComputer.Guid INNER JOIN
vCollection INNER JOIN Collection ON vCollection.Guid = Collection.Guid ON CollectionMembership.CollectionGuid = Collection.Guid
vComputer LEFT OUTER JOIN
ResourceAssociation AS loc ON (loc.ChildResourceGuid = vComputer.Guid OR
loc.ParentResourceGuid = vComputer.Guid) AND loc.ResourceAssociationTypeGuid = '05DE450F-39EA-4AAE-8C5F-77817889C27C' LEFT OUTER JOIN
vItem AS I ON loc.ChildResourceGuid = I.Guid LEFT OUTER JOIN
vHWProcessor ON vComputer.Guid = vHWProcessor._ResourceGuid LEFT OUTER JOIN
vHWComputerSystem ON vComputer.Guid = vHWComputerSystem._ResourceGuid
WHERE (vComputer.IsManaged = 1) AND (vComputer.[OS Name] NOT LIKE '%Server%') AND (vCollection.Name = '.All Computers without SEP')
ORDER BY 'Computer Name'