‎06-12-2015 03:08 PM
Solved! Go to Solution.
‎06-12-2015 04:10 PM
Select Distinct Top 1000000 tblADusers.Userdomain,
tblADusers.Username,
tblAssets.AssetName,
tblUsers.SID,
tblAssets.AssetID
From tblAssets
Right Join tblCPlogoninfo On tblAssets.AssetID = tblCPlogoninfo.AssetID
Right Join tblADusers On tblADusers.Username = tblCPlogoninfo.Username And
tblADusers.Userdomain = tblCPlogoninfo.Domain
Left Join tblUsers On tblAssets.AssetID = tblUsers.AssetID And
tblUsers.Name = tblCPlogoninfo.Username
Order By tblADusers.Userdomain,
tblADusers.Username
‎06-12-2015 04:10 PM
Select Distinct Top 1000000 tblADusers.Userdomain,
tblADusers.Username,
tblAssets.AssetName,
tblUsers.SID,
tblAssets.AssetID
From tblAssets
Right Join tblCPlogoninfo On tblAssets.AssetID = tblCPlogoninfo.AssetID
Right Join tblADusers On tblADusers.Username = tblCPlogoninfo.Username And
tblADusers.Userdomain = tblCPlogoninfo.Domain
Left Join tblUsers On tblAssets.AssetID = tblUsers.AssetID And
tblUsers.Name = tblCPlogoninfo.Username
Order By tblADusers.Userdomain,
tblADusers.Username
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now