‎05-23-2016 01:17 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Username,
tblAssetCustom.PurchaseDate,
tblAssetCustom.Model,
tblAssets.Processor,
tblAssets.Memory,
tsysIPLocations.IPLocation,
tblAssets.IPAddress,
tblDiskdrives.Size,
tblDiskdrives.Volumename,
tblDiskdrives.Caption
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tsysIPLocations On tsysIPLocations.LocationID =
tblAssets.LocationID
Inner Join tblSystemEnclosure
On tblAssets.AssetID = tblSystemEnclosure.AssetID
Inner Join TsysChassisTypes On TsysChassisTypes.Chassistype =
tblSystemEnclosure.ChassisTypes
Inner Join tblDiskdrives On tblAssets.AssetID = tblDiskdrives.AssetID
Inner Join tblFloppy On tblAssets.AssetID = tblFloppy.AssetID
Where tblDiskdrives.DriveType = 3 And (TsysChassisTypes.Chassistype = '9' Or
TsysChassisTypes.Chassistype = '8') And tsysAssetTypes.AssetTypename Like
'Windows' And tblAssetCustom.State = 1 And (tblDiskdrives.Caption = 'C:' Or
tblDiskdrives.Caption = 'D:')
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now