My requirement is to delete data from couple of table selected dynamically based on search condition.
So my cursor should fetch tables in their parent-child hierarchy so that it will not give exception 'CHILD RECORD FOUND' while deleting records.
lets take exable
Table A is child of Table B
Table B is child of Table C
Table D is child of table G
So it should delete in this sequence.
A then
B or D then
D or G