日期:2014-05-17  浏览次数:20966 次

哪位高手给指点一下吧
我要查询一个日期区间内每个月最后一天的数据,哪位高手给指点一下吧
------解决方案--------------------
引用:
我要查询一个日期区间内每个月最后一天的数据,哪位高手给指点一下吧


比如求TEST中trxn_dt在指定的时间START_DT和END_DT中并且trxn_dt为该月的最后一天:

select * from test t where t.trxn_dt=last_dt(t.trxn_dt) and t.trxn_dt between start_dt and t.end_dt