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!

Active Autonomous Transaction while EQUI JOIN

Shrey ChoksiOct 1 2024 — edited Oct 1 2024

Hi Masters,

HISTORY:= “ I was challenged by my senior to delete duplicate data without using subquerry.”

I have been trying to delete from table cust(cust_id)

using equi join using query.

Select is working but delete doesn't work.

Assuming structure [cust_id, cust_name]

data: [[1,"GOKU"],[1,"GOKU"]]

select a.* ,a.rowid,b.rowid from cust a , cust b where a.cust_id = b.cust_id and a.row_id < b.row_id;

delete from cust a , cust b where a.cust_id = b.cust_id and a.row_id < b.row_id;
Comments
Post Details
Added on Oct 1 2024
3 comments
302 views