When I run the query below I get a few computers duplcated. It appears that there are multiple entries for a few computers in the tblSystemEnclosure table. I'd also like to get the OS in there as well. Any suggestions?
SELECT tblCompCustom.Location,
TsysChassisTypes.ChassisName as Type,
tblcomputers.Computer,
tblComputerSystemProduct.Vendor as Vendor,
tblComputerSystemProduct.Name as Model,
tblComputerSystemProduct.IdentifyingNumber as SerialNumber,
tblcomputers.LastknownIP as IPAddress,
tblcomputers.LastActiveScan
FROM tblcomputers
LEFT JOIN tblCompCustom ON tblCompCustom.Computername = tblcomputers.Computername
LEFT JOIN tblSystemEnclosure ON tblSystemEnclosure.Computername = tblcomputers.Computername
LEFT JOIN tblComputerSystemProduct ON tblComputerSystemProduct.Computername = tblcomputers.Computername
LEFT JOIN TsysChassisTypes ON tblSystemEnclosure.ChassisTypes = TsysChassisTypes.Chassistype
ORDER BY tblcomputers.Computer
Thanks,
Patrick
http://patrickhoban.wordpress.com