我有两张桌子:
product_in(存储所有产品数量)
Product Code(PK) Description QTY RS121102 SUITS 100 RS129985 SUITS 100 DF-C09 SHIRTS 50 AE-H05 SHIRTS 50
product_out(存储所有售出的产品数量)
Product Code Description QTY RS121102 SUITS 50 AE-H05 SHIRTS 10
我想要如下结果
Product Code Description Total Qty Sold QTY
RS121102 SUITS 100 50
RS129985 SUITS 100 0
DF-C09 SHIRTS 50 0
AE-H05 SHIRTS 50 10
我怎样才能做到这一点?