Hi I need another way of doing this... create table sA(supplier I, card I) create table sB(supplier I,client I, card I, qtdB I) create table sC(supplier I,client I, card I, qtdC I) *----- insert into sA(supplier, card) values(1, 10) insert into sA(supplier, card) values(1, 20) insert into sA(supplier, card) values(2, 10) *-------- insert into sB(supplier, client, card, qtdB) values(1,1,10,30) insert into sB(supplier, client, card, qtdB) values(1,2,10,10) insert into sB(supplier, client, card, qtdB) values(2,1,10,14) insert into sB(supplier, client, card, qtdB) values(1,3,20,30) insert into sB(supplier, client, card, qtdB) values(2,2,10,15) *-------- insert into sC(supplier, client, card, qtdC) values(1,1,10,20) insert into sC(supplier, client, card, qtdC) values(1,1,20,10) insert into sC(supplier, client, card, qtdC) values(2,1,10,15) insert into sC(supplier, client, card, qtdC) values(2,4,10,30) *---------- Results supplier client card qtdB qtdC 1 1 10 30 20 1 2 10 10 0 1 3 20 20 10 2 1 10 14 15 2 2 10 15 0 2 4 10 0 30
TIA, Eurico. _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

