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

颤抖吧,骚年们,2016年末最牛逼的sql语句

 

count里可以加条件判断,你们见过吗?

相关文章:

  • 2021-05-05
  • 2022-12-23
  • 2021-07-23
  • 2021-04-07
  • 2021-12-24
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-23
  • 2021-11-08
  • 2021-10-01
  • 2021-11-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案