Question
Consider a hospital in which each doctor is responsible for many patients while each patient is cared for by just one doctor. Each doctor has
Consider a hospital in which each doctor is responsible for many patients while each patient is cared for by just one doctor. Each doctor has a unique employee number, name, telephone number, and office number. Each patient has a unique patient number, name, home address, and home telephone number.
a. What kind of relationship is there between doctors and patients?
b. Develop sample doctor and patient data and construct two files in the style of Figure 3.5 in which to store your sample data.
c. Do any fields have to be added to one or the other of the two files to record the relationship between doctors and patients? Explain.
d. Merge these two files into one, in the style of Figure 3.6. Does this create any problems with the data? Explain.
FIGURE 3.5 Three files with redundant data Customer Number 2746795 Customer Number 2746795 Customer Number 2746795 Sales file Customer Name Customer Address John Jones 123 Elm Street Accounts Receivable file Customer Customer Name Address John Jones 123 Elm Street Credit file Customer Customer Name Address John Jones 123 Elm Street FIGURE 3.6 Three files with a data integrity problem Customer Number 2746795 Customer Number 2746795 Customer Number 2746795 Sales file Customer Address John Jones 456 Oak Street Accounts Receivable file Customer Name Customer Name John Jones Credit file Customer Name John Jones Customer Address 456 Oak Street Customer Address 123 Elm Street
Step by Step Solution
3.56 Rating (156 Votes )
There are 3 Steps involved in it
Step: 1
a The relationship between the doctors and patients is onetomany relationship Because one doctor can ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Document Format ( 2 attachments)
609396b1b1f94_23953.pdf
180 KBs PDF File
609396b1b1f94_23953.docx
120 KBs Word File
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started