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 > Normalised database?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-10-09, 01:51
jimmy435345 jimmy435345 is offline
Registered User
 
Join Date: Apr 2009
Posts: 4
Normalised database?

hi guys, im new to this and was just wondering if someone would be so kind as to help me out and tell me if my database is fully normalised? I have also attached an ER diagram which i feel is completely wrong but i just cant think of any other way to do it. Any suggestions or constructive criticism would be much appreciated.

Thanks in advance.
Attached Thumbnails
Normalised database?-relationalschema.jpg   Normalised database?-erdiagram.jpg  
Reply With Quote
  #2 (permalink)  
Old 04-10-09, 06:46
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
if this is for a homework assignment, you've got a couple of small issues

the relationship between cars and sold cars is weird -- the PK of cars is not being used as the FK of sold cars

it's not just a 1-to-1 relationship, either, as a car can usually (in real life) be sold more than once

also, the column "Sold" at the bottom of the cars table seems out of place in light of the sold table

the doors table seems pretty useless, unless you were planning to use it to restrict cars from the database which did not have an approved number of doors

finally, please don't embed "tbl" into your table names -- that's just silly

__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 04-10-09, 09:27
jimmy435345 jimmy435345 is offline
Registered User
 
Join Date: Apr 2009
Posts: 4
Thanks

Thanks for the reply, it is very much appreciated. One final question. Which of the two diagrams, er diagram or relational schema diagram would come first in the design stage of a database?

P.S. its actually for a small project which i have to create.

Thanks again.
Reply With Quote
  #4 (permalink)  
Old 04-10-09, 10:24
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
It is your project. Don't you get to decide which diagram comes first? Think about the order that you want to present the information to your audience, that is the order that I'd include the diagrams in the project presentation.

-PatP
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