EchoAlertcom
IS-IT--Management
Hello,
I need some help with creating a directory list of Categories and Sub Categoies and then Names under either the Category if the Sub Cat is NULL and in a Sub Cat if it is not null. I will show my sql and and an example of what I want it to look like. Thank you for any guidance. I have been beating my head against the wall for too long. Help put a stop to the self-inflicted violence.
SQL =
Visually I would like to show up on the page like this, I will try to cover all possibilities:
I am stumped and lost. Thank you for any help. Let me know if I can clear this mud up any. I really tried to make it as clear as possible.
Sincerely,
Steve
I need some help with creating a directory list of Categories and Sub Categoies and then Names under either the Category if the Sub Cat is NULL and in a Sub Cat if it is not null. I will show my sql and and an example of what I want it to look like. Thank you for any guidance. I have been beating my head against the wall for too long. Help put a stop to the self-inflicted violence.
SQL =
Code:
SELECT Cat, SubCat, Listing
FROM Listings
WHERE bd_Catagory_Name <> NULL
ORDER BY Cat, SubCat, Listing
Visually I would like to show up on the page like this, I will try to cover all possibilities:
Code:
Cat 1
Listing A (record has Cat = Cat 1, SubCat is NULL)
Listing B (record has Cat = Cat 1, SubCat is NULL)
SubCat 1
Listing C (record has Cat="Cat 1", SubCat = "SubCat 1")
SubCat 2
Listing D (record has Cat="Cat 1", SubCat = "SubCat 2")
Cat 2
SubCat 3
Listing E (record has Cat="Cat 2", SubCat = "SubCat 3")
I am stumped and lost. Thank you for any help. Let me know if I can clear this mud up any. I really tried to make it as clear as possible.
Sincerely,
Steve