→ 🚀What's New? Explore Lansweeper's Fall 2024 Updates! Fall Launch Blog !
‎03-16-2017 01:54 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10,
tblAssets.IPAddress,
tblAssetCustom.PurchaseDate,
tblAssets.Username,
tblAssets.Assettype,
tblAssets.OScode,
tblAssetCustom.Manufacturer,
tblAssetGroups.AssetGroup,
tblAssetCustom.State,
tblAssetGroupLink.AssetGroupID,
tblAssetGroups.Builtin,
tblAssetGroups.Dynamic,
tblAssetGroupLink.AssetGroupLinkID,
Count(*) as countrow
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 tblAssets.AssetID In (Select tblAssets.AssetID
From tblAssets Group By tblAssets.AssetID Having count(*) > 1) And
tblAssetCustom.State = 1
Group By tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10,
tblAssets.IPAddress,
tblAssetCustom.PurchaseDate,
tblAssets.Username,
tblAssets.Assettype,
tblAssets.OScode,
tblAssetCustom.Manufacturer,
tblAssetGroups.AssetGroup,
tblAssetCustom.State,
tblAssetGroupLink.AssetGroupID,
tblAssetGroups.Builtin,
tblAssetGroups.Dynamic,
tblAssetGroupLink.AssetGroupLinkID
Solved! Go to Solution.
‎03-16-2017 04:09 PM
‎03-16-2017 04:09 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now