‎11-27-2016 06:07 AM
Solved! Go to Solution.
‎11-28-2016 02:27 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.Username,
tblAssets.Userdomain,
tblAssets.IPAddress,
tblAssets.Firstseen,
tblAssets.Lastseen,
DateDiff(mi, tblAssets.Lastseen, GetDate()) As LastSeenXMinutesAgo,
tblAssetGroups.AssetGroup
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblAssetGroupLink On tblAssets.AssetID = tblAssetGroupLink.AssetID
Inner Join tblAssetGroups On tblAssetGroups.AssetGroupID =
tblAssetGroupLink.AssetGroupID
Where DateDiff(mi, tblAssets.Lastseen, GetDate()) >5 And
tblAssetGroups.AssetGroup = 'default group ' And tblAssetCustom.State = 1
Order By LastSeenXMinutesAgo Desc
‎11-28-2016 02:27 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.Username,
tblAssets.Userdomain,
tblAssets.IPAddress,
tblAssets.Firstseen,
tblAssets.Lastseen,
DateDiff(mi, tblAssets.Lastseen, GetDate()) As LastSeenXMinutesAgo,
tblAssetGroups.AssetGroup
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblAssetGroupLink On tblAssets.AssetID = tblAssetGroupLink.AssetID
Inner Join tblAssetGroups On tblAssetGroups.AssetGroupID =
tblAssetGroupLink.AssetGroupID
Where DateDiff(mi, tblAssets.Lastseen, GetDate()) >5 And
tblAssetGroups.AssetGroup = 'default group ' And tblAssetCustom.State = 1
Order By LastSeenXMinutesAgo Desc
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now