1
I need to set up a very simple select, but I’m having a hard time.
SELECT SEQPRODUTO
FROM MRL_PRODUTOEMPRESA
WHERE STATUSCOMPRA = 'I'
AND NROEMPRESA IN (1,2,3,4,5,6,7,8,9,11,13,14)
I need to select the products where the STATUSCOMPRA = 'I'
in all companies within the following list.
But I only need the items that are inactive in EVERY company on that list.
Using the IN
as I did, the result can bring products that are inactive only in a company on that list.
Please avoid long discussions in the comments; your talk was moved to the chat
– Maniero