Simple query, unexpected result. I am using the second Custom2 field to save Cost, since Lansweeper is about the only inventory system in the world without a field for it
Trying to see something over the cost of $500
SELECT a.AssetName, at.AssetTypename, ac.PurchaseDate, ac.Department, ac.Custom2 FROM tblAssets a
INNER JOIN tblAssetCustom ac ON a.AssetID = ac.AssetID
INNER JOIN tsysAssetTypes at ON a.Assettype = at.AssetType
WHERE ac.Custom2 > '499'
And the result set I get is wrong. I get items well under the amount.
The column appears to be formatted as nvarchar which would explain why this doesn't work.
If I were to change this column type to numeric, am I going to blow up Lansweeper?