→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎05-19-2013 04:46 PM
Solved! Go to Solution.
‎05-21-2013 07:06 PM
Select Top 1000000 tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.AssetName,
tblAssetCustom.Model As [Device model],
tblAssets.AssetID,
Floor(tblCustDevPrinter.TonerRemaining / (Case tblCustDevPrinter.TonerMaximum
When 0 Then 1 Else tblCustDevPrinter.TonerMaximum
End) * 100) As [Remaining %],
tblCustDevPrinter.TonerMaximum,
tblCustDevPrinter.Tonername,
tblCustDevPrinter.Lastchanged
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
Where (Floor(tblCustDevPrinter.TonerRemaining /
(Case tblCustDevPrinter.TonerMaximum When 0 Then 1
Else tblCustDevPrinter.TonerMaximum
End) * 100) <= 10 And Floor(tblCustDevPrinter.TonerRemaining / (Case
tblCustDevPrinter.TonerMaximum When 0 Then 1
Else tblCustDevPrinter.TonerMaximum
End) * 100) >= 0) And tblCustDevPrinter.TonerMaximum > 0 And
tblAssetCustom.State = 1
Order By [Remaining %]
‎05-22-2013 05:15 PM
‎05-21-2013 07:06 PM
Select Top 1000000 tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.AssetName,
tblAssetCustom.Model As [Device model],
tblAssets.AssetID,
Floor(tblCustDevPrinter.TonerRemaining / (Case tblCustDevPrinter.TonerMaximum
When 0 Then 1 Else tblCustDevPrinter.TonerMaximum
End) * 100) As [Remaining %],
tblCustDevPrinter.TonerMaximum,
tblCustDevPrinter.Tonername,
tblCustDevPrinter.Lastchanged
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
Where (Floor(tblCustDevPrinter.TonerRemaining /
(Case tblCustDevPrinter.TonerMaximum When 0 Then 1
Else tblCustDevPrinter.TonerMaximum
End) * 100) <= 10 And Floor(tblCustDevPrinter.TonerRemaining / (Case
tblCustDevPrinter.TonerMaximum When 0 Then 1
Else tblCustDevPrinter.TonerMaximum
End) * 100) >= 0) And tblCustDevPrinter.TonerMaximum > 0 And
tblAssetCustom.State = 1
Order By [Remaining %]
‎05-19-2013 04:48 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now