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!

Merge statement on the same table

curious_mindOct 23 2018 — edited Nov 1 2018

Hi All,

I have a requirement, where i need to insert the data of one partition of a table into an another partition using the Merge statement. could it be possible?

here is the structure of my table:

desc cl_acct

Name                            Null               Type        

---------------------           --------             ------------

EODS_CL_ID            NOT NULL      NUMBER(38)  

EODS_ACCT_ID       NOT NULL      NUMBER(38)  

PRTT_CDE                NOT NULL      VARCHAR2(10)

BCH_DTE                  NOT NULL      DATE        

DATA_GRP_CDE      NOT NULL      VARCHAR2(10)

the partition code(prtt_cde) will always have value such as CGA_0 & CGA_1. I tried a lot but unable to find the syntax which is working.

This post has been answered by Cookiemonster76 on Oct 23 2018
Jump to Answer
Comments
Post Details
Added on Oct 23 2018
18 comments
9,360 views