I have a table named
Category_tbl
Id
Categoryname
info
subcategory_tbl
id
categoryid
subcatname
info
product_tbl
id
subcat
info
i in here subcategory_tbl has the category id and product_tbl has subcategory id as subcat.now if i want to delete a category then i all the corresponding data of same key in subcategory_Tbl and product_tbl needs to be deleted.how can i do it?i tried joining but its not working