A lot of the reports that have been created on our network have this code in them: tblAssets.Assettype = -1
I'm new to LanSweeper so I tried looking in the table to see what it meant, but it just says int, for integer, so I was not expecting a negative number. I have looked at the Asset Mapping section, but this shows different devices and does not show an integer value. If tblAssets.Assettype = -1 means all Assettyes, as I suspect it does, why not leave it out of the WHERE altogether? Can anyone enlighten me as to what it means in the context below.
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblRegistry.Regkey,
tblRegistry.Valuename,
tblRegistry.Value,
tblRegistry.Lastchanged
From tblAssets
Inner Join tblRegistry On tblAssets.AssetID = tblRegistry.AssetID
Where tblRegistry.Regkey Like '%internet explorer' And
tblRegistry.Value Like 'Version' And tblAssets.Assettype = -1
Order By tblAssets.AssetName