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!

Periods for a priority level

student_foreverApr 17 2017 — edited Apr 30 2017

Hi All

I am trying to achieve below scenario using SQL only on Oracle 11.2.0. There can be multiple records for a given priority level and their start and end dates can overlap as shown in below input data table and diagram. It is needed to extract the duration (start date, end date) of each priorities as shown in output table and last line (in color)

Can this be achieved using SQL only. Any help on this is highly welcome.

Scenario.JPG

Thanks in advance

Message was edited by: 895838

This post has been answered by mathguy on Apr 18 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 28 2017
Added on Apr 17 2017
19 comments
785 views