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!

SELECT data based on partitions

PandeeshNov 6 2011 — edited Nov 7 2011
I know we have PARTITION clause in SELECT statement.
My requirement is i need to select data from Last two partitions in which data is available.
If we know the name of the 2 partitions then we can select and UNION ALL.
But In my case, i dont know the partitition names too,
I need to find out the names of the partitions using any subquery and i need to select from that.
May i know how can i achieve this?
Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 5 2011
Added on Nov 6 2011
18 comments
1,569 views