1,排名,自身连接,用count,去重用distinct 2,累加,和上面一样,自身连接,用sum 3,count函数不用group by只有一组 转载于:https://www.cnblogs.com/vhyc/p/10372255.html