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!

Partition clause in SELECT Statement

User_1C9ZRSep 16 2010 — edited Sep 17 2010
I am trying to retrieve data from more than one partition in a Table.

SELECT * FROM TABLE_1 PARTITION(ABC,CDE);

I have found that we can apply the above statement as
SELECT * FROM TABLE_1 PARTITION(ABC)
UNION ALL
SELECT * FROM TABLE_1 PARTITION(CDE)

But I want to use it in a single select statement -> Is there a way to use multiple PARTITIONS in a single query

Thank you -
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 15 2010
Added on Sep 16 2010
9 comments
107,639 views