There was a doubt that I thought would be easy, but the content I found I could not understand.
Good is as follows: I have the tables
"Customer"
and
"ErrorsProducao_Ciente"
where they relate 1 to N, that is, 1 error can affect N Customers.
So I need to do exactly the following SQL query in lambda:
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
, but I would like to find out how it is done using IN.
Unlike the question quoted below in the answer my problem wanted to do IN
directly through subSelect
.