954,595 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

ER to Relational Schema Translation

Hi everyone,

I have a couple of questions regarding ER to Relational Schema Translation.

1. Do I treat a subclass entity as strong entity

2. Do I need to merge entities where most of the attributes are the same

Please advice.

Thank you

kay21
Newbie Poster
20 posts since Mar 2011
Reputation Points: 10
Solved Threads: 0
 

1. You need to pass more information.
2. Yes.

debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
 

I have a Superclass entity EMPLOYEE with Employee_SSN, Employee_Name, Designation, Salary as its attributes and two Subclass entities NURSE with Nurse_ID, Department as attributes and DOCTOR with Doc_ID, Specialty as its attributes.

Do I treat the NURSE and DOCTOR subclass entity as strong entity when mapping to relational schema?

1. You need to pass more information. 2. Yes.
Attachments Superclass_Subclass.jpg 53.87KB
kay21
Newbie Poster
20 posts since Mar 2011
Reputation Points: 10
Solved Threads: 0
 

I would, especially if you were going to have separate Department and Specialty entities translate to their own physical tables (for referential integrity's sake). If you don't plan to separate Specialty and Department as entities, then I wouldn't bother.

Just out of curiosity, where is there a reference to the symbol set you're using? It's not UML, IDEF, Martin, Chen, Gane/Sarson, DeMarco or any other one I've seen. Enquiring minds want to know... :-)

BitBlt
Master Poster
711 posts since Feb 2011
Reputation Points: 367
Solved Threads: 109
 

No, there will not be a separate Department and Specialty entities. We were asked to use the 8 steps algorithm found in Fundamentals of Database Systems textbook to convert the EER to Relational Schema.

This link describes the 8 steps algorithm http://www.acs.uwinnipeg.ca/3902/Ch09.pdf

The diagram is just a part of the EER Diagram that I have created for a Hospital database assignment.

I would, especially if you were going to have separate Department and Specialty entities translate to their own physical tables (for referential integrity's sake). If you don't plan to separate Specialty and Department as entities, then I wouldn't bother.

Just out of curiosity, where is there a reference to the symbol set you're using? It's not UML, IDEF, Martin, Chen, Gane/Sarson, DeMarco or any other one I've seen. Enquiring minds want to know... :-)

kay21
Newbie Poster
20 posts since Mar 2011
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You