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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Period Names between Period Number

Apps_DeveloperDec 21 2022

Hi
I have data in following format:

image.png
I am trying to write a query where I can provide two period_names and it will fetch all period names between them.
e.g. if I provide input as May-21 to Feb-21, it should return me
image.png
I can achieve this using case statements in where clause, but is there any better approach may be using some hierarchical or recursive queries to achieve this.
Thanks.

This post has been answered by Apps_Developer on Dec 22 2022
Jump to Answer

Comments

Post Details

Added on Dec 21 2022
13 comments
1,115 views