I need some help with creating a report that tells me the age of the computer. I want to build the report to only show the computers that are 6 years old or older. We have a replacement cycle of 6 years and need to use the report for budget planning.
I need to see several items in the report and they are listed below:
Purchase Date
Warranty Date
Make and Model
Serial Number
Computer Name
OS Name
--------------------------------------
Here is what I have currently but something is wrong. It shows too many computers.
Select Top 1000000 tblAssetCustom.AssetID,
tblAssets.AssetUnique,
tsysOS.OSname,
tblAssetCustom.Model,
tblAssetCustom.Serialnumber,
tblAssetCustom.PurchaseDate As [Purchase Date],
tblAssetCustom.Warrantydate As [Warranty Expiration],
tsysOS.Image As icon
From tblAssetCustom
Inner Join tblAssets On tblAssetCustom.AssetID = tblAssets.AssetID
Inner Join tblComputersystem On tblAssets.AssetID = tblComputersystem.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Where Year(tblAssetCustom.PurchaseDate) <= (Year(GetDate()) - 6)
Order By tblAssetCustom.PurchaseDate
----------------------------------------------------
Any information/corrections and comments appreciated. Thanks!