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!

Quering Multiple Table Partitions

3220834Apr 25 2016 — edited Apr 26 2016

Hi every one.

I like to call my table partitions in select statement but unable to do so. I can select one partition at a time but unable to query multiple.

I am trying to run query in this manner.

select * from table partition( select partition_name from dab_tab_partitions

where table_owner = 'ABCD'

and table_name = 'Table Name'

and partition_position >= (select max(partition_position) - 4 from dba_tab_partitions

where table_owner = 'ABCD'

and table_name = 'Table Name'))

it gives me error, ORA:00933 SQL Command Not Properly Ended.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 24 2016
Added on Apr 25 2016
11 comments
590 views