‎10-01-2013 12:40 AM
Solved! Go to Solution.
‎10-01-2013 01:49 AM
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,
tblAssetGroups.AssetGroup
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
INNER JOIN tblAssetGroupLink ON tblAssets.AssetID = tblAssetGroupLink.AssetID
INNER JOIN tblAssetGroups ON tblAssetGroups.AssetGroupID = tblAssetGroupLink.AssetGroupID
WHERE
tblAssetCustom.State = 1
AND tblComputersystem.Domainrole < 2
AND ( tblAssetCustom.Warrantydate < GetDate() + 30
AND tblAssetCustom.Warrantydate > GetDate())
ORDER BY
[Warranty Expiration] Desc
‎10-01-2013 11:20 PM
‎10-01-2013 11:24 AM
= 'YourGroupName'
‎10-01-2013 05:21 AM
‎10-01-2013 01:49 AM
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,
tblAssetGroups.AssetGroup
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
INNER JOIN tblAssetGroupLink ON tblAssets.AssetID = tblAssetGroupLink.AssetID
INNER JOIN tblAssetGroups ON tblAssetGroups.AssetGroupID = tblAssetGroupLink.AssetGroupID
WHERE
tblAssetCustom.State = 1
AND tblComputersystem.Domainrole < 2
AND ( tblAssetCustom.Warrantydate < GetDate() + 30
AND tblAssetCustom.Warrantydate > GetDate())
ORDER BY
[Warranty Expiration] Desc
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now