Link to home
Start Free TrialLog in
Avatar of Sanjeet
SanjeetFlag for United States of America

asked on

SQL with more then 1 value for returning data from a field

I need to return the user id for specific users from a table

such as


select OBjectID,  from PTUsers
where LoginName = 'metatree\jmajorve'
AND LoginName = 'metatree\jkarasek'
Avatar of digital_thoughts
digital_thoughts

USE DISTINCT
ASKER CERTIFIED SOLUTION
Avatar of digital_thoughts
digital_thoughts

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Aneesh
select OBjectID  from PTUsers
where LoginName  in (  'metatree\jmajorve' ,  'metatree\jkarasek' )