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 > Is My Database Design Well Structured? - Beginner RDBMS Question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-02-09, 13:18
peace2009 peace2009 is offline
Registered User
 
Join Date: Aug 2009
Posts: 2
Post Is My Database Design Well Structured? - Beginner RDBMS Question

First of all, i'm glad to be part of your forum members! Hi to everybody...

****************************************

* represents primary key

As far as i see, this design is good. I need your confirmation I followed 1NF, 2NF, 3NF, and one to many relationships guidelines.

-Seller Table {*SellerID, first name, last name, address, city, CountryID (foreign key), phone number, date hired}

-Customer Table {*CustomerID, first name, last name, address, city, CountryID (foreign key), SellerID (foreign key) }

-Car Table {*CarID, manufacturer, model, car year}

-Purchased Car Table {*CarID (foreign key), *CustomerID (foreign key), date purchased }


-----

These tables have multivalued fields...

Country Table {*CountryID, country name}

A customer can store several phone number (home, cell, work):

Phone Table {*PhoneID, CustomerID (foreign key), phone number}

Last edited by peace2009; 08-02-09 at 13:21.
Reply With Quote
  #2 (permalink)  
Old 08-02-09, 13:42
dportas dportas is offline
Registered User
 
Join Date: Dec 2007
Location: London, UK
Posts: 732
Quote:
Originally Posted by peace2009
These tables have multivalued fields...
Relational databases are never multi-valued. Attributes are always single-valued attributes. Perhaps you meant something different though and if so then maybe you could clarify what you mean.

I think your design is a reasonable first attempt. You might want to reconsider possible dependencies between the Address, City, Country attributes.
Reply With Quote
  #3 (permalink)  
Old 08-02-09, 14:01
peace2009 peace2009 is offline
Registered User
 
Join Date: Aug 2009
Posts: 2
Quote:
Originally Posted by dportas
Relational databases are never multi-valued. Attributes are always single-valued attributes. Perhaps you meant something different though and if so then maybe you could clarify what you mean.

I think your design is a reasonable first attempt. You might want to reconsider possible dependencies between the Address, City, Country attributes.
maybe you could clarify what you mean:

You are right. I meant country field will have a drop list that contains country names, so basically the field will end up having one value.
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