Help to Convert entity-relationship model into a relational database design.

Reply

Join Date: Sep 2008
Posts: 1
Reputation: choc.ohloic is an unknown quantity at this point 
Solved Threads: 0
choc.ohloic choc.ohloic is offline Offline
Newbie Poster

Help to Convert entity-relationship model into a relational database design.

 
0
  #1
Sep 19th, 2008
I have an ER model which i need to convert into a relational database design.

Can someone please let me know if i am on the right track?

Also how do i represent a foriegn Key, do i use italics, and for prinary key underline?

I have attached the ER model, and please see below as to what i have so far.

CUSTOMERS(Customer_ID,Customer_Name,Biling_Street, Billing_City,Billing_State, Billing_Postcode,Customer_Home_Phone, Customer_Work_Phone, Customer_Mobile_Phone; Faxnbr)

JOBS(Customer_ID,Job_ID,Job_Description, Expected_Start_Date,Expected_Duration_Days, Actual_Start_Date, Actual_Finish_Date, Total_Hours, Total_Litres_Used, Total_Amount_Due, Completed)

INVOICE(Invoice_ID, Job_ID,Invoice_Date,Invoice_Amount, Due_Date)

PAYMENT(Invoice_ID, Payment_ID, Payment_Date,Payment_Amount)

EMPLOYEE(Employee_ID, Employee_Name,Street, City, State, Postcode, Employee_Home_Phone, Employee_Mobile_Phone, Tax_File_Nbr)

TIMESHEET(Employee_ID, Job_ID, Timesheet_ID, Start_Time_Stamp, Finish_Time_Stamp, Hours_Worked, Litres_Used)


Thanks for your help and yes this is an assignment, so all guidence and reasoning behind suggsestion would be appreciated.
Attached Files
File Type: doc ERMODEL.doc (67.0 KB, 25 views)
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 305
Reputation: timothybard is an unknown quantity at this point 
Solved Threads: 25
timothybard's Avatar
timothybard timothybard is offline Offline
Posting Whiz

Re: Help to Convert entity-relationship model into a relational database design.

 
0
  #2
Sep 23rd, 2008
What you have looks good to me. I don't what what the font convention is for representing foreign keys and primary keys, or if there even is one.

Secondly, what exactly do you mean by converting an ER model to a relational database design; I usually think of the ER model as a step in the relational database design process.

Having said all that, the tables you have listed do represent the ER Model you have attached.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC