Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Query Help...
Hi All,
Have a table like ...
FOLDER_ID PARENT_ID
----------------- ---------------
001
002 001 003 002 004 003 005 004
and so on....
The parent_ID is the foreign key referencing FOLDER_ID column of the same table.
Want a SQL which deletes the bottom most folder_id i.e., 005 in the above case, and then 004 and then 003 ....
Do not want to use cascade delete....
**
--
Regards,
Deepak
Oracle DBA
--
http://www.freelists.org/webpage/oracle-l
Received on Mon Jan 23 2006 - 03:34:35 CST
![]() |
![]() |