I have a table with some data as follows
Id | Title | Category -- ----- -------- 1 Beans Food 2 Pizza Food 3 SQL Book 4 Avatar Movie 5 Oracle Book
I would like to organize this kind of table data in the form of a TREE with root node as Category.
Food Beans Pizza Book SQL Oracle Movie Avatar
Could you suggest a hierarchical query. I tried few, but could not get the desired result.
UPDATE realspirituals
Setup a fiddle here, if you want to try