Hello Lansweeper.
I tried to make query warranty with os version included.
So I taked standard query from lansweeper and added OS version, last seen and login name.
But the problem is now that some device have extended warranty and it show in excel duplicated.
Is here a way to take only newest warranty?
Thanks
Select Top 1000000 tblAssets.AssetName,
tblAssets.Username,
tsysAssetTypes.AssetTypeIcon16 As icon,
tblWarranty.PurchaseCountry,
tblWarrantyDetails.WarrantyEndDate,
Case When GetDate() > tblWarrantyDetails.WarrantyEndDate Then 'yes' Else 'no'
End As Expired,
tblAssets.Lastseen,
tsysOS.OSname,
tblAssets.OScode
From tblWarranty
Inner Join tblWarrantyDetails On tblWarranty.WarrantyId =
tblWarrantyDetails.WarrantyId
Inner Join tblAssets On tblWarranty.AssetId = tblAssets.AssetID
Inner Join tsysAssetTypes On tblAssets.Assettype = tsysAssetTypes.AssetType
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Where Not (tblWarranty.LastWarrantySuccess Is Null)
Order By tblAssets.AssetName,
tblWarrantyDetails.WarrantyEndDate Desc