If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Product Categories

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-15-03, 05:55
RModica_1982 RModica_1982 is offline
Registered User
 
Join Date: Oct 2003
Posts: 3
Product Categories

Hi all,

I am currently a bit stuck and would like some help. I am designing a product catalogue and need help with multiple categories. The way i have it like this.


PRODUCT TABLE
ProdID
ProdName
ProCat
etc....

CATEGORY TABLE
CatID
CatLevel --> Level Of Category i.e. 0 for top level, 1 for next etc
CatParent --> Category Parent - cat above this cat i.e. if i had a computer mouse and its category was Accesories then the parent of that would be computer equipment, and the parent of that may be all products. its so i can build like a breadcrumb of navigation such as!

All >> Computer Equipment >> Accesories

Is this concept ok, or am i missing something?

Please Help,

Rob


I am assuming that i can use this method to do this. if a product is assi
Reply With Quote
  #2 (permalink)  
Old 10-15-03, 06:56
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
category hierarchy concept is fine

the "level" column might be tricky to maintain, but it can also be useful

do a search for "adjacency model" (which is what this is)

for another type of structure, search for "celko nested set"
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 10-15-03, 10:59
RModica_1982 RModica_1982 is offline
Registered User
 
Join Date: Oct 2003
Posts: 3
Thanks R937 that was a great help did some research and there it was thanks again.

Rob (y)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On