Problems on Mapping of E-R Model
to Relational Model
Adyasha Rath
Assistant Professor, CSE Dept, CGU
E-R Diagram of Banking Management System
Applying the rules that we have learnt, minimum 6 tables
will be required-
•Account (Ac_no , Balance , b_name)
•Branch (b_name , b_city , Assets)
•Loan (L_no , Amt , b_name)
•Borrower (C_name , L_no)
•Customer (C_name , C_street , C_city)
•Depositor (C_name , Ac_no)
E-R Diagram of a Car-insurance Company
Car insurance tables:
person (driver-id, name, address)
car (license, year, model)
accident (report-number, date, location)
participated(driver-id, license, report-number, damage-amount)
E-R Diagram of a Hospital
Hospital tables:
patients (patient-id, name, insurance, date-admitted, date-
checked-out)
doctors (doctor-id, name, specialization)
test (test-id, test-name, date, time, result, patient-id)
doctor-patient (patient-id, doctor-id)
performed-by (test-id, doctor-id)
E-R Diagram of a Weak Entity
Final relational schema after reduction is as follows;
Manufacturer (name, street, city)
Part (part_num, description, name)
Customer (ID, Name)
Order (order_num, ID, part_num, Quantity)