‎10-09-2015 02:07 PM
Solved! Go to Solution.
‎10-09-2015 06:42 PM
Select Top 1000000 tblAssetUserRelations.StartDate,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Description,
tsysAssetRelationTypes.Name As Relation,
tblAssetUserRelations.Comments,
tblADusers.Lastname,
tblADusers.Firstname,
tblAssets.Username
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 tblADusers On tblADusers.Username = tblAssetUserRelations.Username
And tblADusers.Userdomain = tblAssetUserRelations.Userdomain
Inner Join tsysAssetRelationTypes On tsysAssetRelationTypes.RelationTypeID =
tblAssetUserRelations.Type
Where tblAssetCustom.State = 1
Order By tblAssetUserRelations.StartDate Desc,
tblADusers.Lastname
‎10-09-2015 06:42 PM
Select Top 1000000 tblAssetUserRelations.StartDate,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Description,
tsysAssetRelationTypes.Name As Relation,
tblAssetUserRelations.Comments,
tblADusers.Lastname,
tblADusers.Firstname,
tblAssets.Username
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 tblADusers On tblADusers.Username = tblAssetUserRelations.Username
And tblADusers.Userdomain = tblAssetUserRelations.Userdomain
Inner Join tsysAssetRelationTypes On tsysAssetRelationTypes.RelationTypeID =
tblAssetUserRelations.Type
Where tblAssetCustom.State = 1
Order By tblAssetUserRelations.StartDate Desc,
tblADusers.Lastname
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now