You are on page 1of 1

Consider the following Scenarios and answer the questions

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

Identify the relationship between publisher and book

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

(Hospital_id, Hospital_name, Hospital_address, Hospital_type,Doctor_id)

Doctor entity

(Doctor_id,Doctor_name,Specialization,Doctor_address,Patient_id)

Consider the following Scenarios and answer the questions

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.

Identify the relationship between doctor and patient

a) one to many
b) many to one
c) one to one
d) many to many

Ans: a

You might also like