Link to home
Create AccountLog in
Avatar of intelliflex
intelliflexFlag for United States of America

asked on

Categories/Sub-Categories - Best Performance? (ASP.NET / SQL)

What is the best design for SQL data tables for Categories, Unlimited Sub-Categories, and Products? Some products will be in multiple categories. Also, what would be the best way to pull them out, Stored Procedures? Example code? (this will be for a classified ads website)
Thanks for your time, it is very much appreciated!
Dave
ASKER CERTIFIED SOLUTION
Avatar of udaya kumar laligondla
udaya kumar laligondla
Flag of India image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of intelliflex

ASKER

We currently run a commercial shopping cart that has three tables for categories, #1 category table, #2 category Parent table, #3 category Node table. It's giving me a headache trying to figure out the relations. The main category table has most of the category information, the other two are just relational fields, an example: CategoryID, CatalogNodeID, CatalogNodeTypeID, etc...
This design works fine for the shopping cart, but for the classifieds database we are developing, I'm not sure this is the best design for performance.