range of month

              TO_DATE (TO_CHAR ( (LEVEL + 1 - 1), '00') || TO_CHAR (pi_year),
CONNECT BY LEVEL <= (pi_number_to - pi_number_from) + 1


if i pass pi_year as 2013

and pi_number from =1 andd pi_number_to = 5

the the range of motnth should be

JAN-13, FEB-13, MAR-13, APR-13, MAy-13

but if the range is from

and pi_number from =5 andd pi_number_to = 7 n and the year= 2013

i should get
MAY-13, JUN-13, JUL-13

the query is working for the range of 1 to 5

but not working for the range of 5 to 7
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

slightwv (䄆 Netminder) Commented:
Take a look at what I posted in your previous question:

What you posted isn't quite the same as what I posted...

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
slightwv (䄆 Netminder) Commented:
you have:
to_char((level + 1 - 1),'00')

I had:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.