This question is locked. New answers and comments are not allowed.
Hello everybody, I recognize this question might sound odd.
I was trying get a set of products (ArticuloEmpresa) for a given company (EmpresaID) where there exists at least one order (Pedido) for each product.
So, products are ArticuloEmpresaExtent and orders are PedidoExtent.
I tryed this query and it works ok. But as I was just testing I would expect it to return all the "PedidoExtent" fields too as it was SQL.
SELECT * FROM ArticuloEmpresaExtent AS x,
PedidoExtent as y
WHERE x.EmpresaID = "640d6df6-994a-4173-9b31-473eb5b5d76f" AND
y.Articulo = x AND
y.Estado = "AceptadoEnvio"
I was happy to see that only the "ArticuloEmpresaExtent" are retrieved, but I don't understand why.
¿Can anyone explain to me please?
Best regards,
Gonzalo
I was trying get a set of products (ArticuloEmpresa) for a given company (EmpresaID) where there exists at least one order (Pedido) for each product.
So, products are ArticuloEmpresaExtent and orders are PedidoExtent.
I tryed this query and it works ok. But as I was just testing I would expect it to return all the "PedidoExtent" fields too as it was SQL.
SELECT * FROM ArticuloEmpresaExtent AS x,
PedidoExtent as y
WHERE x.EmpresaID = "640d6df6-994a-4173-9b31-473eb5b5d76f" AND
y.Articulo = x AND
y.Estado = "AceptadoEnvio"
I was happy to see that only the "ArticuloEmpresaExtent" are retrieved, but I don't understand why.
¿Can anyone explain to me please?
Best regards,
Gonzalo