摘要: 需求说明: 需要查询出某个客户某一年那些天是有连续办理过业务实现SQL如下: 创建表: create table test_num(tyear number, tdate date); 测试数据:insert into test_numselect 2014,trunc(sysdate)-1 from dual union all select 2014,trunc(sysdate)-002 from dual union all select 2014,trunc(sysdate)-003 from dual union all select 2014,trunc(sysdate)-004 阅读全文
posted @ 2013-10-29 09:35 lonsine 阅读(4808) 评论(1) 推荐(1) 编辑