→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎02-02-2011 04:19 AM
Solved! Go to Solution.
‎02-03-2011 06:33 PM
Select tblCompCustom.Location As Location,
TsysChassisTypes.ChassisName As Type,
tblcomputers.Computer As Name,
Web40OSName.OSname As OS,
Web40OSName.SP As SP,
tblComputerSystemProduct.Vendor As Vendor,
tblComputerSystemProduct.Name As Model,
tblComputerSystemProduct.IdentifyingNumber As SerialNumber,
tblcomputers.LastknownIP As IPAddress,
tblcomputers.LastActiveScan As LastSeen,
tblcomputers.Computername
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
Inner Join Web40OSName On Web40OSName.Computername = tblcomputers.Computername
Where TsysChassisTypes.Chassistype <> 12
UNION
SELECT tblCustDevices.Location As Location,
tsysDevicetypes.ItemTypename As Type,
tblCustDevices.Displayname As Name,
tblCustDevices.Description As OS,
CAST('' As int) As SP,
tblCustDevices.Vendor As Vendor,
tblCustDevices.Model As Model,
tblCustDevices.Serialnumber As SerialNumber,
tblCustDevices.Ipaddress As IPAddress,
tblCustDevices.LastSeen As LastSeen,
CAST('' As int) As Computername
FROM tblCustDevices, tsysDevicetypes
WHERE tblCustDevices.Devicetype = tsysDevicetypes.ItemType
Order By Name
‎02-03-2011 06:33 PM
Select tblCompCustom.Location As Location,
TsysChassisTypes.ChassisName As Type,
tblcomputers.Computer As Name,
Web40OSName.OSname As OS,
Web40OSName.SP As SP,
tblComputerSystemProduct.Vendor As Vendor,
tblComputerSystemProduct.Name As Model,
tblComputerSystemProduct.IdentifyingNumber As SerialNumber,
tblcomputers.LastknownIP As IPAddress,
tblcomputers.LastActiveScan As LastSeen,
tblcomputers.Computername
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
Inner Join Web40OSName On Web40OSName.Computername = tblcomputers.Computername
Where TsysChassisTypes.Chassistype <> 12
UNION
SELECT tblCustDevices.Location As Location,
tsysDevicetypes.ItemTypename As Type,
tblCustDevices.Displayname As Name,
tblCustDevices.Description As OS,
CAST('' As int) As SP,
tblCustDevices.Vendor As Vendor,
tblCustDevices.Model As Model,
tblCustDevices.Serialnumber As SerialNumber,
tblCustDevices.Ipaddress As IPAddress,
tblCustDevices.LastSeen As LastSeen,
CAST('' As int) As Computername
FROM tblCustDevices, tsysDevicetypes
WHERE tblCustDevices.Devicetype = tsysDevicetypes.ItemType
Order By Name
‎02-03-2011 10:19 AM
‎02-02-2011 09:16 PM
Select tblCompCustom.Location As Location,
TsysChassisTypes.ChassisName As Type,
tblcomputers.Computer As Name,
Web40OSName.OSname As OS,
Web40OSName.SP As SP,
tblComputerSystemProduct.Vendor As Vendor,
tblComputerSystemProduct.Name As Model,
tblComputerSystemProduct.IdentifyingNumber As SerialNumber,
tblcomputers.LastknownIP As IPAddress,
tblcomputers.LastActiveScan As LastSeen,
tblcomputers.Computername
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
Inner Join Web40OSName On Web40OSName.Computername = tblcomputers.Computername
Where TsysChassisTypes.Chassistype <> 12
UNION
SELECT tblCustDevices.Location As Location,
tsysDevicetypes.ItemTypename As Type,
tblCustDevices.Displayname As Name,
tblCustDevices.Description As OS,
'' As SP,
tblCustDevices.Vendor As Vendor,
tblCustDevices.Model As Model,
tblCustDevices.Serialnumber As SerialNumber,
tblCustDevices.Ipaddress As IPAddress,
tblCustDevices.LastSeen As LastSeen,
'' As Computername
FROM tblCustDevices, tsysDevicetypes
WHERE tblCustDevices.Devicetype = tsysDevicetypes.ItemType
Order By Name
‎02-02-2011 10:00 AM
Select tblCompCustom.Location, TsysChassisTypes.ChassisName As Type,
tblcomputers.Computer, Web40OSName.OSname, Web40OSName.SP,
tblComputerSystemProduct.Vendor As Vendor, tblComputerSystemProduct.Name As
Model, tblComputerSystemProduct.IdentifyingNumber As SerialNumber,
tblcomputers.LastknownIP As IPAddress, tblcomputers.LastActiveScan,
tblcomputers.Computername
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 Inner Join
Web40OSName On Web40OSName.Computername = tblcomputers.Computername
Where TsysChassisTypes.Chassistype <> 12
Order By tblcomputers.Computer
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now