当前位置: 代码迷 >> 综合 >> sql高级用法大全
  详细解决方案

sql高级用法大全

热度:45   发布时间:2024-02-06 18:03:09.0

统计

select site_code,date,member_idsum(casewhen type=3 then1else0end) as recharge_times,sum(casewhen type =189 then1else0end) as withdraw_timesfrom st_member_reportwhere 1=1  group by site_code,date,member_id

 

  相关解决方案