I have a table with categories in and would like to return a result set which is in the order I want to display them in. Currently I return all the categories of level 1, then as I iterate through them in the application, I check to see if they have a sub category (level 2) and then return to the database and return the sub categories for that category, and then iterate through the sub category records and look to see if any have a level 3 subsubcategory. This seems a very lengthy process with unecessary trips to the database, but I can't figure out how to return through one query a dataset in the order of my menu.
Please Help. Thanks
Please Help. Thanks