The hospital would like to set up a relational database corresponding to this form. a. Normalize the database into INF including only one table. Give the content of the table as well as the list of functional dependencies for the table. b. Normalize the database into 2NF. Give the content of each table after as well as the list of functional dependencies for each table after normalizing. c. Normalize the database into 3NF. Give the content of each table after as well as the list of functional dependencies for each table after normalizing.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

help me SQl

Exercise 1. You have been given a form which shows the details of tests done by different patients during
their visits to the hospital. In fact, when a patient goes to the hospital, he/she asks to be examined by a doctor of
a department. This doctor could ask him/her to do some tests and/or send him/her to another doctor of another
department. Then, the other doctor could also ask him/her to do other tests. A doctor belongs to only one
department. The Amount here is the remaining amount that the patient must pay for the test, after subtracting
the amount paid by the security social.
The hospital would like to set up a relational database corresponding to this form.
Visit
ID
1
1
P_ID: Patient's ID
P_Name: Patient's Name
D_ID: Doctor's ID
D_Name: Doctor's Name
DeptID: Department's ID
DeptName: Department's Name
2
3
4
a. Normalize the database into INF including only one table. Give the content of the table as well
as the list of functional dependencies for the table.
Time
b. Normalize the database into 2NF. Give the content of each table after as well as the list of
functional dependencies for each table after normalizing.
c. Normalize the database into 3NF. Give the content of each table after as well as the list of
functional dependencies for each table after normalizing.
2019/12/23
09:10:00
2019/12/23
10:30:00
P_ID P_Name
2019/12/23
09:10:00
2019/12/23 300
10:30:00
2019/12/27
14:30:00
298 Mary
Walls
298
3008
298
Mary
Walls
Bob
Jackson
Peter
Smith
Mary
Walls
Phone
D ID
0987654534 1002
0987654534 1001
0896755888 1001
0675389799 1003
0987654534 1003
D_Name
Alan
Smith
Jill Young
Jill Young
Mary
Weber
Mary
Weber
Deptl DeptName
D
101
102
102
102
Maternity
Testl TestName
D
TO1 Diabetes Blood 15
Test
2D
Gastroenterology
TO2
Gastroenterology T03
Gastroenterology T03
T04
TOI
T05
102 Gastroenterology T04
Price Quantity
20
ultrasonography
Anorectal function 30
testing
Anorectal function
testing
24-hour
PH 45
monitoring
Diabetes Blood 15
Test
Capsule endoscopy
150
24-hour pH 45
monitoring
30
3
1
1
1
2
2
1
1
Amount
40
18
30
30
90
30
120
37
Transcribed Image Text:Exercise 1. You have been given a form which shows the details of tests done by different patients during their visits to the hospital. In fact, when a patient goes to the hospital, he/she asks to be examined by a doctor of a department. This doctor could ask him/her to do some tests and/or send him/her to another doctor of another department. Then, the other doctor could also ask him/her to do other tests. A doctor belongs to only one department. The Amount here is the remaining amount that the patient must pay for the test, after subtracting the amount paid by the security social. The hospital would like to set up a relational database corresponding to this form. Visit ID 1 1 P_ID: Patient's ID P_Name: Patient's Name D_ID: Doctor's ID D_Name: Doctor's Name DeptID: Department's ID DeptName: Department's Name 2 3 4 a. Normalize the database into INF including only one table. Give the content of the table as well as the list of functional dependencies for the table. Time b. Normalize the database into 2NF. Give the content of each table after as well as the list of functional dependencies for each table after normalizing. c. Normalize the database into 3NF. Give the content of each table after as well as the list of functional dependencies for each table after normalizing. 2019/12/23 09:10:00 2019/12/23 10:30:00 P_ID P_Name 2019/12/23 09:10:00 2019/12/23 300 10:30:00 2019/12/27 14:30:00 298 Mary Walls 298 3008 298 Mary Walls Bob Jackson Peter Smith Mary Walls Phone D ID 0987654534 1002 0987654534 1001 0896755888 1001 0675389799 1003 0987654534 1003 D_Name Alan Smith Jill Young Jill Young Mary Weber Mary Weber Deptl DeptName D 101 102 102 102 Maternity Testl TestName D TO1 Diabetes Blood 15 Test 2D Gastroenterology TO2 Gastroenterology T03 Gastroenterology T03 T04 TOI T05 102 Gastroenterology T04 Price Quantity 20 ultrasonography Anorectal function 30 testing Anorectal function testing 24-hour PH 45 monitoring Diabetes Blood 15 Test Capsule endoscopy 150 24-hour pH 45 monitoring 30 3 1 1 1 2 2 1 1 Amount 40 18 30 30 90 30 120 37
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Dataset
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education