#注意case when then else end语句与sum的连用,可以用来对于符合条件的记录进行计数,比如sum(case when email.type='no_completed' then 1 else 0 end) p
#第二点注意取固定位数小数时,要用round(数值,小数位数)
#第三写where条件时,注意表的列别写错了!为了避免报错,最好对于每一列都标注好表的来源。