When I run the query below it is missing most but not all of the computer that haven't been seen in 30 days. Any idea why?
SELECT '' as Location,
TsysChassisTypes.ChassisName as Type,
tblcomputers.Computer as Name,
tblComputerSystemProduct.Vendor as Vendor,
tblComputerSystemProduct.Name as Model,
tblComputerSystemProduct.IdentifyingNumber as SerialNumber,
tblcomputers.LastknownIP as IPAddress
FROM tblcomputers, tblComputerSystemProduct, tblSystemEnclosure, TsysChassisTypes
WHERE tblcomputers.Computername = tblComputerSystemProduct.Computername
AND tblSystemEnclosure.ChassisTypes = TsysChassisTypes.Chassistype
AND tblcomputers.Computername = tblSystemEnclosure.Computername
AND tblComputerSystemProduct.Vendor <> 'Vmware, Inc.'
AND TsysChassisTypes.ChassisName <> 'Docking Station'
UNION
SELECT tblCustDevices.Location,
tsysDevicetypes.ItemTypename,
tblCustDevices.Displayname,
tblCustDevices.Vendor,
tblCustDevices.Description,
tblCustDevices.Serialnumber,
tblCustDevices.Ipaddress
FROM tblCustDevices, tsysDevicetypes
WHERE tblCustDevices.Devicetype = tsysDevicetypes.ItemType
ORDER BY LastknownIP
Thanks,
Patrick
http://patrickhoban.wordpress.com