nurselD patientID N0140000 P123, P234, P883, P678 N0172222 P234, P334, P222, P883 NO182222 P243, P123, P883, P888 N0163333 P111, P123 NO164444 P222, P234 You are responsible to help design this database for the hospital. a) What relationship (one-to-one, one-to-many, many-to-many) exists between NURSE and PATIENT? Explain your answer or draw an entity relationship diagram. b) How many tables would be needed to implement the relationship as indicated in (a)? List out the attributes in each table, indicating which field(s) form the primary key, and which field is the foreign key (if foreign key exists).

A Guide to SQL
9th Edition
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Philip J. Pratt
Chapter2: Database Design Fundamentals
Section: Chapter Questions
Problem 11RQ
icon
Related questions
Question
A hospital would like to set up a database recording which registered nurse looked after which
patient etc. Each registered nurse has a unique nurse ID, and each patient has a unique patient ID,
and the following attributes are found for nurses, and patients in the first round of design:
NURSE: nurselD, suname, first name, birthdate, dept-code, sex, salary-level
PATIENT: patientlD, surname, first name, birthdate, wardlD, sex, admission_date, discharge_date
A recent duty list shows the patients that were cared by each nurse in past 2 months, see below for
some samples:
Transcribed Image Text:A hospital would like to set up a database recording which registered nurse looked after which patient etc. Each registered nurse has a unique nurse ID, and each patient has a unique patient ID, and the following attributes are found for nurses, and patients in the first round of design: NURSE: nurselD, suname, first name, birthdate, dept-code, sex, salary-level PATIENT: patientlD, surname, first name, birthdate, wardlD, sex, admission_date, discharge_date A recent duty list shows the patients that were cared by each nurse in past 2 months, see below for some samples:
nurselD
patientID
N0140000
P123, P234, P883, P678
N0172222
P234, P334, P222, P883
N0182222
P243, P123, P883, P888
N0163333
P111, P123
NO164444
P222, P234
You are responsible to help design this database for the hospital.
a) What relationship (one-to-one, one-to-many, many-to-many) exists between NURSE and
PATIENT? Explain your answer or draw an entity relationship diagram.
b) How many tables would be needed to implement the relationship as indicated in (a)? List out
the attributes in each table, indicating which field(s) form the primary key, and which field is
the foreign key (if foreign key exists).
Transcribed Image Text:nurselD patientID N0140000 P123, P234, P883, P678 N0172222 P234, P334, P222, P883 N0182222 P243, P123, P883, P888 N0163333 P111, P123 NO164444 P222, P234 You are responsible to help design this database for the hospital. a) What relationship (one-to-one, one-to-many, many-to-many) exists between NURSE and PATIENT? Explain your answer or draw an entity relationship diagram. b) How many tables would be needed to implement the relationship as indicated in (a)? List out the attributes in each table, indicating which field(s) form the primary key, and which field is the foreign key (if foreign key exists).
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning