If you are trying to list the last patches for a specific Windows machine then you are better off using the Lastchanged field from tblQuickFixEngineering instead of InstalledOn. The InstalledOn field is a text field. It doesn't always contain a date and isn't filled in for every update either.
We included a sample report below that takes the last scanned update of each Server 2003 machine and then counts the number of machines that were last updated in specific years. You can add this report to your Lansweeper installation by following the instructions in
this forum topic.
Select Top 1000000 DatePart(yy, SubQuery.Max) As Year,
Count(SubQuery.AssetID) As Count
From (Select Top 1000000 tblQuickFixEngineering.AssetID,
Max(tblQuickFixEngineering.Lastchanged) As Max
From tblQuickFixEngineering
Group By tblQuickFixEngineering.AssetID) SubQuery
Inner Join tblAssetCustom On tblAssetCustom.AssetID = SubQuery.AssetID
Inner Join tblAssets On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Where tblAssetCustom.State = 1 And tsysOS.OSname Like '%2003%'
Group By DatePart(yy, SubQuery.Max)
Order By Year