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 online store design

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-21-11, 14:55
sgb77 sgb77 is offline
Registered User
 
Join Date: Apr 2011
Posts: 1
Question Help with online store design

Hello all,
I have been working on a database for an online webstore, the store will have various types of products, like computers, printers, cameras, etc..
I have set up a main table

Products
---------
ProdID
Description
Make
Model
AssetType
etc...

Now since I need to have details for each one of the items, like computers for example would need to have specific details for computers and printers need to have specific details for printers, I created a details table for each:

Computers
------------
ProdID
CPU
Memory
HardDisk
Motherboard
etc..

Printers
-----------
ProdID
PagesPerMin
LaserJet
DPI
etc....

As can see everything is linked by ProdID that way I can look up the details for each of the products depending on what it is, that is determined by the AssetType in the product table.

My question is, is this a good way to do it? I am going to have various other items and this would mean that I would need to create details tables for each one of those.
I was also contemplating creating one big details tables and include all the fields for all the different items and then create views for each one of the different types of items.

If anyone can help me out, it would be greatly appreciated.

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