→ 🚀What's New? Explore Lansweeper's Fall 2024 Updates! Fall Launch Blog !
‎05-20-2015 10:55 AM
Solved! Go to Solution.
‎05-22-2015 10:04 AM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblAssets.Lasttried
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join (Select Top 1000000 tblAssets.AssetName,
Count(tblAssets.AssetID) As Count
From tblAssets
Inner Join tblAssetCustom On tblAssetCustom.AssetID = tblAssets.AssetID
Where tblAssetCustom.State = 1
Group By tblAssets.AssetName) SubQuery1 On SubQuery1.AssetName =
tblAssets.AssetName
Where tblAssetCustom.State = 1 And SubQuery1.Count > 1
Order By tblAssets.AssetName,
tblAssets.IPNumeric
‎05-26-2015 03:01 AM
‎05-22-2015 10:04 AM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblAssets.Lasttried
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join (Select Top 1000000 tblAssets.AssetName,
Count(tblAssets.AssetID) As Count
From tblAssets
Inner Join tblAssetCustom On tblAssetCustom.AssetID = tblAssets.AssetID
Where tblAssetCustom.State = 1
Group By tblAssets.AssetName) SubQuery1 On SubQuery1.AssetName =
tblAssets.AssetName
Where tblAssetCustom.State = 1 And SubQuery1.Count > 1
Order By tblAssets.AssetName,
tblAssets.IPNumeric
‎05-21-2015 03:21 PM
Select tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.IPAddress
From tblAssets
Where tblAssets.AssetName In ('AssetName1', 'AssetName2', 'AssetName3')
‎05-21-2015 04:37 AM
‎05-20-2015 04:30 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now