→ Celebrate SysAdmin Day 2024 with Lansweeper Enter our Giveaway here

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Saffron
Engaged Sweeper
Hello, I am working on pulling a report of mobile asset that does not currently have a user relation configured. I am sure it is something simple, your help is appreciated.

Select Top 1000000 tblAssets.AssetName,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssetCustom.Model,
tblADusers.Firstname,
tblADusers.Lastname,
tblAssets.Username,
tblAssets.Lasttried,
tblAssets.Lastseen,
tblAssetUserRelations.Comments,
tblAssetUserRelations.RelationID
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Left Join tblAssetUserRelations On
tblAssets.AssetID = tblAssetUserRelations.AssetID
Inner Join tblADusers On tblADusers.Username = tblAssetUserRelations.Username
And tblADusers.Userdomain = tblAssetUserRelations.Userdomain
Where tblAssetCustom.Model Like 'Latitude%' And tblAssetUserRelations.RelationID
Is Null And tsysAssetTypes.AssetTypename = 'Windows' And
tblAssetCustom.State = 1
0 REPLIES 0