标签:bsp 安装 amt case when sql time name unix from
select channel_name,from_unixtime(createTime,‘%Y-%m-%d‘) as tdate,
count(deviceid) ‘安装量‘,count(case when amt<>0 then 1 end) ‘付费量‘
from v_payitem group by channel_name,tdate
count里可以加条件判断,你们见过吗?
标签:bsp 安装 amt case when sql time name unix from
原文地址:http://www.cnblogs.com/as3lib/p/6200448.html