select p.prod_name,sum(o.quantity) quant_sold from Products p,OrderItems o where p.prod_id = o.prod_id group by prod_name

将两表进行关联,从关联表中进行查询,最后再分组,依据产品名称进行分组