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 with Inventory Database Design

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-27-08, 11:02
mpsmyth71 mpsmyth71 is offline
Registered User
 
Join Date: Nov 2008
Posts: 1
Help with Inventory Database Design

We are looking at two options for inventory design. I wanted to get some opinions about both options. To give you a little background; this is a retail system, which users can buy and sell unique items - Coins, Currency, Bullion, and Books.

We have Type Set reference tables for Coins, Currency, Bullion, and, books. These tables contain predefined attribute values based on unique number or type. These reference tables allows users to quickly input a unique number and pre-populate the inventory entry screen with the predefined item's attribute.

Now, for storing the inventory record in the database. We can either do, Option #1 - We record items attribute values pulled from the typed reference tables or Option #2 - we store the primary Key ID from that typed reference table.

Any comments or opions would be appreciated.
Reply With Quote
  #2 (permalink)  
Old 11-27-08, 16:28
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
i'd go for option 2, although you did not really give us very good examples to work from
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
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