答案 0 :(得分:1)
您可以使用日期列进行连接,并将每个日期的值相加
select a.productType, b.Date, sum(b.ProductPounds)
from table1 a
INNER JOIN table2 b on a.date = b.date
group by a.productType, b.date
或者如果你不需要总和,那么
select a.productType, b.Date, b.ProductPounds
from table1 a
INNER JOIN table2 b on a.date = b.date