If you wanna do all in your code then you have to probably go for it by yourself. Although you can do it via code easily, however the opposite case would be complex using code. But in your case
one parent -----> many children
So, you just need to delete one parent. If multiple hierarchies, you need to delete each parent entry. Then even one trigger wouldn't help you straight. You might have to define more than one trigger. [ March 06, 2005: Message edited by: Adeel Ansari ]
subject: how to delete a parent row when a child is deleted?