Oracle query help needed -
after doing below query missing days want add additional filter if of displayed dates below query saturday , sunday has remove date dates should not displayed can guide me how extend filter in below query.. below query got forum along query need query satisfy me above question. please me how modify query
with date_range ( select min(the_date) oldest, max(the_date) recent, max(the_date) - min(the_date) total_days your_table ), all_dates ( select oldest + level - 1 a_date date_range connect level <= (select total_days date_range) ) select ad.a_date all_dates ad left join your_table yt on ad.a_date = yt.the_date yt.the_date null order ad.a_date;
add condition:
and to_char(ad.a_date, 'dy') not in ('sat','sun')
- where
clause.
Comments
Post a Comment