SELECT
tab1.articolo,
sum(tab2.quantity_collo)
FROM tab1
INNER JOIN tab2 ON tab1.articolo = tab2.articolo
group by
tab1.articolo
having sum(tab2.quantity_collo)= tab1.quantità
SELECT
tab1.articolo,
sum(tab2.quantity_collo)
FROM tab1
INNER JOIN tab2 ON tab1.articolo = tab2.articolo
group by
tab1.articolo
having sum(tab2.quantity_collo)= tab1.quantità
Ultima modifica di 123delphi321; 11-06-2014 a 12:15
Ok, con having sum(tab2.quantity_collo)= tab1.quantità ha funzionato.
Grazie.