Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Count how many times a date is in a range

3734791Jun 28 2018 — edited Jul 2 2018

Hi,

I'm using oracle 11g. I must create a query who creates a table with a range of dates starting by a table with a single dates' field.

Example:

Legislature

29-apr-08
28-apr-06
30-may-01

inter
15-may-09
29-apr-07

30-jul-05

16-jun-10


Result

date_fromdate_tocount
29-apr-08sysdate2
28-apr-0628-apr-081
30-may-0127-apr-081
This post has been answered by mathguy on Jun 28 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 30 2018
Added on Jun 28 2018
8 comments
875 views