‎07-26-2017 03:30 PM
‎07-26-2017 05:21 PM
Select Top (1000000) tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.Lastseen,
Case When tblAssets.Lastseen < DateAdd(hh, -12, GetDate()) Then '#FF8396'
End As backgroundcolor,
Case When tblAssets.Lastseen < DateAdd(hh, -12, GetDate()) Then '#fbfb86'
End As foregroundcolor,
tblAssets.AssetName,
tblAssetCustom.Model,
tblAssetCustom.Location,
tblAssetCustom.Serialnumber,
tblAssets.IPAddress As [IP Address],
tblAssets.AssetID,
Case When tblCustDevPrinter.TonerMaximum = 0 Or
tblCustDevPrinter.TonerRemaining = 0 Then 0
Else Floor(tblCustDevPrinter.TonerRemaining / tblCustDevPrinter.TonerMaximum
* 100) End As [Remaining %],
tblCustDevPrinter.Tonername As [Toner Name]
From tblCustDevPrinter
Inner Join tblAssets On tblCustDevPrinter.AssetID = tblAssets.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tblAssets.Assettype = tsysAssetTypes.AssetType
Left Outer Join tsysIPLocations On tsysIPLocations.StartIP <=
tblAssets.IPNumeric And tsysIPLocations.EndIP >= tblAssets.IPNumeric
Where tsysIPLocations.IPLocation Like '%Toronto%'
Order By [Remaining %]
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now