Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 5th, 2003, 04:56 AM
user100 user100 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 2 user100 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Database Design Help

Hi All

I am trying to design a database and I am stuck. My database will store customer feedbacks /complaints where customers will

select

First, country they live in (approx 15 countries)
Second, Product (20 different products)
Third, Model No (up to 5 models)

For example if you select US as country, products available may be different then the products available to UK. Hence Model Numbers.


I have 2 options:

1- Use dynamic Javascript to store the information

2 - create tables

I would prefer using tables, but this means I will create quit a lot of tables to store all the information (after the normalisation).

What would be the best way to handle this problem. I hope someone can help me.

Thank you

Reply With Quote
  #2  
Old January 5th, 2003, 12:30 PM
christo's Avatar
christo christo is offline
Introspective
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Nov 2001
Location: London, UK
Posts: 3,317 christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 5 h 42 m 28 sec
Reputation Power: 109
Send a message via ICQ to christo Send a message via Yahoo to christo
mysql> create database dbname;
Query OK, 1 row affected (0.00 sec)

mysql> use dbname;
Database changed
mysql> create table feedback(
-> fe_id int auto_increment,
-> fe_country text,
-> fe_product text,
-> fe_model varchar(10),
-> primary key (fe_id));
Query OK, 0 rows affected (0.47 sec)

you would then have separate tables for your products and models - each with their own PK's, but models would join to products with a mo_prid field.

christo
__________________
This is me: http://chris.uk.com

Last edited by christo : January 6th, 2003 at 04:18 AM.

Reply With Quote
  #3  
Old January 7th, 2003, 12:18 AM
user100 user100 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 2 user100 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Smile

Thank you for your help Christo. It made things much easier.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > Database Design Help

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap