Professional Documents
Culture Documents
Many To One One To One Many To Many
Many To One One To One Many To Many
A book can be identified by its id. A library member is identified by member-id A Library Member can
avail any number of books. a publisher publishes a book. Supplier supplies book to library. Members
borrow the book. A Publisher can publish book only for one title or one book_id
a) one to many
b) many to one
c) one to one
d) many to many
Ans: c
4) In the Hospital Management system, the following entities and attributes can be identified in E-R
Model.
Patient entity
(Patient_id,Patient_name,patient_mobile,patient_email,patient_disease,doctor_id,hospital_id)
Hospital entity
Doctor entity
(Doctor_id,Doctor_name,Specialization,Doctor_address,Patient_id)
A doctor is identified with his/her id. A doctor can treat any number of patients. A hospital can have
any number of branches with different addresses and can treat any number of patients. A patient
can go to any hospital, but only to a single doctor.
a) one to many
b) many to one
c) one to one
d) many to many
Ans: a