1.需求:
  从所有数据中,查出一个时间段中每天的数据量,即:按日做汇总。
2.SQL语句模板:   select trunc(date_col) date, sum(num_col) num, count(*) col_num   from table_name   where to_char(date_col,'yyyymm') = '201305'   group by trunc(date_col);

3.亲测有效√

相关文章:

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