→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎12-08-2017 09:54 AM
‎12-11-2017 11:49 AM
Select Top 1000000 tblAssetUserRelations.Username As RelationUser,
Count(tblAssetUserRelations.RelationID) As RelationCount
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblAssetUserRelations On tblAssets.AssetID =
tblAssetUserRelations.AssetID
Inner Join tblState On tblState.State = tblAssetCustom.State
Inner Join tsysIPLocations On tsysIPLocations.LocationID =
tblAssets.LocationID
Left Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tsysAssetRelationTypes On tblAssetUserRelations.Type =
tsysAssetRelationTypes.RelationTypeID
Where tblState.Statename = 'Active' And tsysAssetRelationTypes.Name = 'Owned By'
Group By tblAssetUserRelations.Username,
tsysAssetRelationTypes.Name
Having Count(tblAssetUserRelations.RelationID) > 1
Order By RelationCount Desc
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now