i have following table
album_id | sub_album_id | name
sdf2342 | 0 | family
a2243d | sdf2342 | wife
23ods | sdf2342 | jack
23jskd | 0 | places
i want to delete selected album with its all the sub_album and if there is more sub_album then delete them too.. so even sub_album can have a sub_album.. just like folder tree view.. there is no limit.
how can i delete all the sub albums of an album with the selected album.. doing it with one query.