【发布时间】:2022-02-20 08:43:10
【问题描述】:
如何使用以下查询仅获得星期二
with range1 as(
select min(active_date) as start_Date
,min(r_date) as end_date,a.id
from dummy a, dummy1 b
where
and a.id=b.id group by a.id)
select start_Date+level-1 day1,deal_id
from range1
connect by level <=(
trunc(end_Date)-trunc(start_Date)+1)
【问题讨论】: