I have a table that has id, name, level (the depth) and parrent_id, is there any nice way to remove all nodes without any children? (On one level suffices)?
I know I can do it in application – load all the nodes on given level and the check if they have children, if not remove, but this whould probably be more effective in SQL and I’m not SQL guru 🙂
I have a table that has id, name, level (the depth) and parrent_id, is
Share
You could try
Even better would be to try