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 > Database Server Software > MySQL > Database Structure problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-17-04, 13:09
subnet_rx subnet_rx is offline
Registered User
 
Join Date: Oct 2004
Posts: 6
Database Structure problem

Let's say I have blue widgets and red widgets in two different tables. Then I have a Sold table. How should I set the Sold table up so that I have the BlueID's and RedID's in the table. Two different columns? One column that could contain both values? Or a seperate categoryID that links to a table that describes the different widget categories?
Reply With Quote
  #2 (permalink)  
Old 11-18-04, 05:29
omiossec omiossec is offline
Registered User
 
Join Date: Jan 2003
Location: Paris, France
Posts: 320
You can have something like this

Fk_id
A field that mark is the records is from blue or red
__________________
Olivier Miossec
--
http://www.lasso-developpeur.net/
--
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