1 select sum(SHOW_NUMBER) as SHOW_NUMBER ,d.dt
2 from T_RECOMMEND_ANALYSIS t,(
3 select to_date('2018-06-08','yyyy-MM-dd') - (level-1) * 7 dt  
4 from dual connect by level <=15) d
5 where t.CREATE_TIME<dt and t.CREATE_TIME> d.dt-7
6 group by d.dt 

按照时间7天进行分组

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
  • 2021-06-27
  • 2022-12-23
  • 2022-12-23
  • 2021-11-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-20
  • 2022-01-16
  • 2021-07-23
  • 2022-12-23
相关资源
相似解决方案