My Database structure is like follows
id category parent
-------------------------
1 Programming
2 Database Programming
3 MySQL Database
Now when i query for MySQL, i should get the result as
MySQL -> Database -> Programming
I received some suggestions that, i can do it using Stored Procedures. But it will make my query slow.