dunno if the excel function is the same as this, but here's what you want in sql --
Code:
select sum(A.quantity * B.quantity) as SumAxB
from A inner join B on A.ID = B.ID
of course, that's the sum for the entire table
if you want the sum for each ID, it's --
Code:
select A.id
, sum(A.quantity * B.quantity) as SumAxB
from A inner join B on A.ID = B.ID
group
by A.ID
rudy
http://rudy.ca/