‎03-25-2015 10:04 AM
Select Top 1000000 tblAssets.AssetID,
tblAssets.Username,
tblADusers.Firstname,
tblADusers.Lastname,
tblADusers.email
From tblAssets
Left Join tblADusers On tblADusers.Username = tblAssets.Username And
tblADusers.Userdomain = tblAssets.Userdomain
Where tblAssets.Username Is Not Null And tblADusers.Firstname Is Not Null And
tblADusers.Lastname Is Not Null And tblADusers.Lastname Not Like
'%PRESTATAIRE%' And tblADusers.Lastname Not Like '%STAGIAIRE%' And
tblADusers.Lastname Not Like '%INTERIMAIRE%' And
((tblADusers.email Is Not Null And tblADusers.email Like '%MyDomain1%') Or
tblADusers.email Like '%MyDomain2%')
Solved! Go to Solution.
‎03-25-2015 12:05 PM
‎03-30-2015 02:14 PM
‎03-25-2015 01:22 PM
‎03-25-2015 12:05 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now