Posted: Tue Apr 22, 2008 6:03 am Post subject: Deleting parent record in ESQL
Acolyte
Joined: 28 Jun 2007 Posts: 51
I have a parent child relation with the incoming BOs (Database generated).I need to delete the parent record from the database and not the child.Is there anyway to do it?
Scenario explained:
Adapter is polling for events in Database.It will pick up the records in database which are satisfying our condition and we will get both the parent and child records which are from different tables.But we need to delete the records in parent table after operation is done and leave as such the child records. _________________ Thanks and Regards,
Akir
Tell everyone what you want to do and someone will want to help you do it.-W. Clement Stone
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
1. Extract the records what ever you need.
2. You can delete the Parent, Unless and until if there are no dependency factor (foreign key, primary key constraints) --purely Database concept
Regards
Gayathri _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum