每个文章,每个人对其进行评分,计算每个文章评分总和
select Aclass,(select sum(Bid) as Bclassnum from tabB where Bclass=Aclass) as Aclassnum from tabA order by Aclassnum desc