Link to home
Start Free TrialLog in
Avatar of matthew phung
matthew phung

asked on

linq equivalent for "IN" operator in Select * FROM table where Id IN (Select Id FROM tableB)

Is there a linq equivalent for "IN" operator in Select * FROM table where Id IN (Select Id FROM tableB)?
Avatar of Scott Pletcher
Scott Pletcher
Flag of United States of America image

That's (almost) equal to an INNER JOIN, so maybe:

 Select distinct t.* FROM table t inner join tableb b where t.id = b.id
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

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