4
A doubt arose that I thought would be easy, but the content I found could not understand.
Well, here’s the thing: I have the tables
"Client"
and
"Errosproducao_client"
where they relate form 1 to N, ie 1 error can affect N Customers.
So I need to do in lambda exactly the SQL query below:
select * from Cliente
where Id_Cliente in (select CodCliente
from ErrosProducao_Cliente
where codErro = 1)
I know I can solve this problem with a Join
, however would like to find out how is done using IN.
Unlike the question quoted below in the answer my problem wanted to realize the IN
directly through a subSelect
.
http://answall.com/questions/18909/cl%C3%A1usula-in-com-lambda
– user26552
Make a select of the customer codes within an array, and look at the gold link. However the performance with Join is better by what I’ve read.
– user26552
Can you give me an example of how Join would look in this case?
– Arthur Zanini