求一段时间累加的oracle语句 - ITeye问答
求一段时间累加的oracle语句3 例如: Time num 2007-1-1 10 2007-1-2 8 2007-1-3 12 2007-1-4 5 ... 如何查询得到: 2007-1-1到2007-1-2 10 2007...
在oracle中如何用sql语句计算一段时间中的星期六和星期..._百度知道
问题描述: 一段时间的两个日期字段都知道!(用d1和d2来代替)最佳答案: select count( case when to_char(dt,’day’)='星期六' or to_char(dt,’day')='星期日' then 1 else 0 end) as cnt from ( select d1+...更多关于求一段时间累加的oracle语句的问题>>