I want to generate date range between trunc('7/1/2014','mm/dd/yyyy') and trunc(sysdate-1)+0.99999 (from 7/1/2014 till yesterday midnight) per year basis.
please refer to the attached image for expected result (https://i.stack.imgur.com/UD4Ub.png)
I want to generate date range between trunc('7/1/2014','mm/dd/yyyy') and trunc(sysdate-1)+0.99999 (from 7/1/2014 till yesterday midnight) per year basis.
please refer to the attached image for expected result (https://i.stack.imgur.com/UD4Ub.png)
Copyright © 2021 Jogjafile Inc.
Something like this. Adapt as needed. You probably won't
select * from ranges
but instead you will use the ranges wherever/however you need them. The input datedt
, selected from a tableinput_date
in my solution, may instead be a bind variable in your application, etc. Hope you are able to figure out the adjustments yourself; if not, please write back.