DB Practical 2
DB Practical 2
Group II
Note: All parts are compulsory.
Make E-R Diagrams, tables with relationships an also write the SQL queries/ statements for
each.
A patient will have unique Patient ID. Full description about the patient about personal detail and
phone number, and then Disease and what treatment is going on. The doctor will handle patients, one
doctor can Treat more than 1 patient. Also, each doctor will have unique ID. Doctor and Patients will be
related. Patients can be admitted to hospital. So different room numbers will be there, also rooms for
Operation Theaters and ICU. There are some nurses, and ward boys for the maintenance of hospital and
for patient take care. Based upon the number of days and treatment bill will be generated.
Question no 2:
A student and faculty can issue books. Different limits for the number of books a student and teacher
can issue. Also, the number of days will be distinct in the case of students and teachers for issue any
book. Each book will have different ID. Also, each book of the same name and same author (but the
number of copies) will have different ID. Entry of all the book will be done, who issue that book and
when and also duration. Detail of Fine (when the book is not returned at a time) is also stored.
Question no 4: