count不需要取出数据,sum需要取出数据,使用count统计个数,使用sum统计数据的总合,
count可以与case语句结合使用。如果count(num)中num的值为null,count不会加入统计