Question
1. Consider the table: VisitNo VisitDate PatNo PatAge PatCity PatZip ProvNo ProvSpecialty Diagnosis V10020 1/13/2018 P1 35 Denver 80217 D1 internist Ear Infection V10020 1/13/2018
1. Consider the table:
VisitNo | VisitDate | PatNo | PatAge | PatCity | PatZip | ProvNo | ProvSpecialty | Diagnosis |
V10020 | 1/13/2018 | P1 | 35 | Denver | 80217 | D1 | internist | Ear Infection |
V10020 | 1/13/2018 | P1 | 35 | Denver | 80217 | D2 | NURSE PractiTIoner | INFLUENZA |
V93030 | 1/20/2018 | P3 | 17 | Englewood | 80113 | D2 | NURSE PractiTIoner | pregnancy |
V82110 | 1/18/2018 | P2 | 60 | Boulder | 85932 | D3 | cardiologist | murmur |
V34210 | 1/19/2018 | P2 | 60 | BOULDER | 85932 | D3 | CARDIOLOGIST | IRREGULAR BEAT |
V34211 | 1/25/2018 | P5 | 17 | GV | 80111 | D4 | InTERNIST | EAR INFECTION |
- State the functional dependencies. (Assume that different patients can have the same zip code - PatZip)
- Transform this table into one or more tables in BCNF. State the primary keys, candidate keys, foreign keys, and referential integrity constraints.
2. For the following Customer and Order tables, first describe the problem with each table, then explain the fixes needed to comply with BCNF.
3. Consider the table:
STUDENT (Number, Name, Dorm, RoomType, DormCost, Club, ClubCost, Sibling, Nickname)
Assume that students pay different dorm costs, depending on the type of room they have, but that all members of a club pay the same cost. Assume that students can have multiple nicknames.
- State any multivalued dependencies.
- State the functional dependencies.
- Transform this table into two or more tables such that each table is in BCNF and in 4NF. State the primary keys, candidate keys, foreign keys, and referential integrity constraints.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started