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 > Help: Best Design for Non-Numeric & Partitioned Primary Key

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-26-03, 18:47
bakabrain bakabrain is offline
Registered User
 
Join Date: Aug 2003
Posts: 1
Question Help: Best Design for Non-Numeric & Partitioned Primary Key

I am DB novice and I hope I can find some help here from this forum.

Two problems:
1. How to best design an e-Commerce backend with products having three level deep categories (Category1/Category2/Category3/Product).
My approach is to create a table for each category having an FK to the parent. Is this OK?

2. Some products have non-numeric (mixed with char) model number and some use last few digits to describe different types (color, etc). From a programming standpoint I can just use two varchars columns to describe model# and type with another varchar to combine together as PK. Is there any better approach to this problem?

Thanks in advance.
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