0
Script only works by returning a single codpro (4609), needed it to return several
SELECT a.filial, a.codpro, b.descricaolonga , a.quant, a.estminimo, c.filial AS 'filial ped', c.quant AS 'carteira', c.quantrec AS 'recebido'
FROM ITEMFILEST a, COMPLEMENTOPRODUTO b , ITEMFORCAD c
WHERE a.codpro = b.codpro AND a.codpro = c.codpro AND c.quantrec ='0.000' and
a.codpro ='04609'
need it to work with a list:
- a. codpro ='04609'
- a. codpro ='04610'
- a. codpro ='04611' and so on...
Tried to use conjunction
OR
in its clause WHERE? Depending on the amount of values maybeIN
be of use to you.– anonimo
The result does not match the data: check column [affiliate Ped] in the result.
– José Diz
And how is the junction between tables A and C? Use only the column
codpro
does not guarantee the result.– José Diz
with a.codpro only ='04609' works fine, but I need to insert more a.codpro ='04609' a.codpro ='04610' a.codpro ='04611'
– Matheus Maaf