‎08-08-2017 03:59 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysAssetTypes.AssetTypename As AssetType,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tsysIPLocations.IPLocation,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tblAssetCustom.Serialnumber,
tblAssetCustom.SystemSKU,
tblAssetCustom.PurchaseDate,
tblAssetCustom.Warrantydate,
tblAssets.Lastseen,
tblAssets.Lasttried,
tblWarranty.LastWarrantyTry,
tblWarranty.LastWarrantySuccess,
tblAssets.ServiceVersion As LansweeperVersion,
tblWarranty.Error
From tblAssets
Inner Join tblWarranty On tblAssets.AssetID = tblWarranty.AssetId
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblState On tblState.State = tblAssetCustom.State
Inner Join tsysIPLocations On tsysIPLocations.LocationID =
tblAssets.LocationID
Where (tblWarranty.LastWarrantySuccess Is Null Or
tblWarranty.LastWarrantySuccess = '' Or tblWarranty.LastWarrantySuccess <
tblWarranty.LastWarrantyTry) And tblState.Statename = 'Active'
Order By tblAssets.IPNumeric,
tblAssets.Domain,
tblAssets.AssetName,
tblWarranty.Error
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now