Question

In: Computer Science

Functional Dependency and normalization. The following database table describes a hospital containing physicians and the patients...

  1. Functional Dependency and normalization.

The following database table describes a hospital containing physicians and the patients they had appointments with.

Physician ID

Physician Name

Patient Name

Appointment

ID

Appointment Date

Patient Phone Number

Patient Symptoms

Patient Email

Physician Phone Number

  1. Define the functional dependencies in the database table. (10 pts)
  1. Normalize the table to follow third normal form (10 pts)

Solutions

Expert Solution

a) Functional Dependencies in the given database table explained below

  • Physician ID is the key for this relation
  • Physician name is fully functionally dependent on Physician ID
  • Patient Name is functionally dependent on Physician ID
  • Patient Phone Number, Patient Email , Patient Symptoms , Appointment _ID are fully functionally dependent on Patient Name .
  • Appointment Date is fully functionally dependant on Appointment ID
  • Appointment Date is partially dependent on Patient Name
  • Appointment _ID is functionally dependent on Patient Name
  • Appointment _ID partially dependent on Physician ID
  •   Since Patient Name is dependent on Physician ID ,  Patient Phone Number, Patient Email ,Patient Symptoms Appointment ID and Appointment Date are partially functionally dependent on Physician ID

b) The given table above has been normalized in 3NF below

Physician [ Physician_ID, Physician Name ]

Patient [ Patient_ID, Patient_Name, Patient_Phone_Number, Patient_Email, Patient_Symptoms ]

Appointment [ Appointment_ID, Appointment_Date, Patient_ID, Physician_ID ]

Note : Primary key attributes are underlined . Foreign keys are in italics

  




Related Solutions

Suppose a hospital would like to estimate the proportion of patients who feel that physicians who...
Suppose a hospital would like to estimate the proportion of patients who feel that physicians who care for them always communicated effectively when discussing their medical care. A pilot sample of 50 patients found that 36 reported that their physician communicated effectively. Determine the additional number of patients that need to be sampled to construct a 90​% confidence interval with a margin of error equal to 8​% to estimate this proportion. The additional number of patients that need to be...
You are to create a small DB for a hospital. The DB should contain the information about patients and physicians.
create an entity relationship diagram.You are to create a small DB for a hospital. The DB should contain the information about patients and physicians. Attributes of physicians include physician ID (identifier), name(first and Last) and specialization. Every patient has a name (first and last) and a unique patient ID. When a patient is admitted to the hospital, the patient must be assigned a physician in charge of the admission procedure. For every admission, the date of the admission to the...
The following frequency table summarizes the distances in miles of 100 patients from a regional hospital....
The following frequency table summarizes the distances in miles of 100 patients from a regional hospital. Distance Frequency 0-4 20 4-8 25 4-12 30 12-16 20 16-24 5 Calculate the sample variance and standard deviation for this data (since it is a case of grouped data- use group or class midpoints in the formula in place of X values, and first calculate the sample mean)
Assume that you have a Saudi league player database. In this database, you have a table containing players’ attributes
Assume that you have a Saudi league player database. In this database, you have a table containing players’ attributes such as (Name, age, position, etc.) and you decided to add information about players’ agents. Would you represent the agent information as attributes in the player table or would you create an entity set for players’ agents? Justify your answer.
Normalization: Answer all 4 questions. You are given the following relation R and some functional dependencies....
Normalization: Answer all 4 questions. You are given the following relation R and some functional dependencies. R(SID, Project, Code, ListOfSupplies, Name, Initials, Abbrev) Project → ListOfSupplies SID → Name Name → Initials Project, Initials → Abbrev SID, Project → Code Code → SID Is R in 1NF? If not, normalize R into a collection of 1NF relations. Is R in 2NF? If not, normalize R (or your collection of 1NF relations) into a collection of 2NF relations. Is R in...
Draw the diagram (ER / MR / UML) for a database containing the following characteristics: •...
Draw the diagram (ER / MR / UML) for a database containing the following characteristics: • Presence sensor that stores presence information with its timestamp and its location. • Distance sensor that saves distance information with its timestamp and its location. • An actuator of a switch that energizes a bulb, where the record of its been with your timestamp and your location. • An actuator of a motor that opens a door, where the record of its been with...
Determine the Functional Dependencies that exist in the following Orders table. This table lists customer and...
Determine the Functional Dependencies that exist in the following Orders table. This table lists customer and order data. Orders (SupplierNum, SupplierName, Supp_Phone, ProductNum, Description, Product_type, QuotedPrice) . Normalize the above relation to 3 rd normal form, ensuring that the resulting relations are dependency-preserving and specify the primary keys in the normalized relations by underlining them.
1.            Use the following table to calculate the expected value. The following table describes the possible...
1.            Use the following table to calculate the expected value. The following table describes the possible outcomes and their associated probabilities. x P(x) ($20) 0.05 ($5) 0.1 $0 0.15 $10 0.35 $15 0.2 $30 0.15                 The first 2 outcomes are losses (negative values).                 What is the expected value of this probability distribution?                 (1 point) 2.            In a certain school (enrollment in the school is well over 1000 students), 40% are male. If you randomly select 8 students:...
A hospital has a large number of registered physicians, and keeps the following personal data: physician...
A hospital has a large number of registered physicians, and keeps the following personal data: physician name, date of birth, work ID and specialty. Patients are admitted to the hospital by physicians. Patient’s name and address as well as date of birth are collected. Any patient who is admitted must have exactly one admitting physician. A physician may optionally admit any number of patients. Once admitted, a given patient must be treated by at least one physician. A particular physician...
Demonstrate 1NF Normalization Techniques Procedure Bring the following table structure to first normal form and explain...
Demonstrate 1NF Normalization Techniques Procedure Bring the following table structure to first normal form and explain the errors in the current structure. Your submission can be drawn in Word or hand drawn and attached to your submission. Be sure to write out your explanation of the errors in the normal form. Instructor Name Instructor Phone Instructor Email Course Name Course Number Course Description Student1 Name Student1 Phone Student1 Email Student1 GPA Student2 Name Student2 Phone Student2 Email Student2 GPA …...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT