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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Active Autonomous Transaction while EQUI JOIN

Shrey Choksi2 days ago — edited 2 days ago

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 2 days ago
3 comments
73 views