User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Database Design section within the Web Development category of DaniWeb, a massive community of 456,272 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,421 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Database Design advertiser: Programming Forums
Views: 819 | Replies: 1
Reply
Join Date: Sep 2008
Posts: 1
Reputation: choc.ohloic is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
choc.ohloic choc.ohloic is offline Offline
Newbie Poster

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

  #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, 11 views)
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Mar 2007
Posts: 137
Reputation: timothybard is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 12
timothybard's Avatar
timothybard timothybard is offline Offline
Junior Poster

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

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Database Design Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the Database Design Forum

All times are GMT -4. The time now is 6:29 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC