•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Database Design section within the Web Development category of DaniWeb, a massive community of 361,899 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,404 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Database Design advertiser:
Views: 3269 | Replies: 0
![]() |
•
•
Join Date: Oct 2005
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
I did a table with categories in a products table then i figured our i should move the categories off into another table .. now I need to add subcategories ...
I read a bit .. and found someone doing this :
How can i use the lookup table? is this function supported by MySQL? It's empty although i added data to the categories and subcats...
please help
I read a bit .. and found someone doing this :
CATEGORY TABLE ----------------------- CREATE TABLE CATEGORY( cat_name char(50), cat_id int4, PRIMARY KEY(cat_id)); ----------------------- SUB_CATEGORY --------------------------- CREATE TABLE SUB_CATEGORY( subcat_name char(50), subcat_id int4, PRIMARY KEY(subcat_id)); --------------------------- SUB_SUB_CATEGORY ------------------------------- CREATE TABLE SUB_SUB_CATEGORY( sub_subcat_name char(50), sub_subcat_id int4, PRIMARY KEY(sub_subcat_id)); ------------------------------ SUB_CATEGORY_LOOKUP_TABLE ---------------------------------- CREATE TABLE CATEGORY_LOOKUP_TABLE( look_cat_id int4, look_subcat_id int4, look_sub_subcat_id int4, PRIMARY KEY(look_cat_id,look_subcat_id,look_sub_subcat_id));
How can i use the lookup table? is this function supported by MySQL? It's empty although i added data to the categories and subcats...
please help
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Database Design Marketplace
- Seo Chennai, seo experts, seo India, seo global, seo world (Post your Resume)
- Creating a new array dynamically for checkboxes? (PHP)
- Report w/Cateories/subcategories (PHP)
- Movie database Help (C++)
- Parse error: syntax error, unexpected T_STRING (PHP)
- Permanent PR4 Directory Links - Just $9.95 (Ad Space for Sale)
- Font Size Problem (PHP)
- The size of your database? (Growing an Online Community)
Other Threads in the Database Design Forum
- Previous Thread: Query with Joins
- Next Thread: what is the definition of internet database system?


Linear Mode