Question
1. The following relation Student exhibits the so-called update anomalies. S_SSN Address S_Class CourseNo OfferSem OfferYr S_Grade C_Des 123456789 Jackson 2018 CSC520 Fall 2016 3.4
1. The following relation Student exhibits the so-called update anomalies.
S_SSN | Address | S_Class | CourseNo | OfferSem | OfferYr | S_Grade | C_Des |
123456789 | Jackson | 2018 | CSC520 | Fall | 2016 | 3.4 | DB |
123456789 | Jackson | 2018 | CSC620 | Fall | 2016 | 3.2 | VB |
891234567 | Dallas | 2018 | CSC541 | Spring | 2017 | 3.0 | OO |
891234567 | Dallas | 2018 | CSC620 | Fall | 2016 | 3.3 | VB |
A. Give an example using the above relation to explain the insertion anomaly.
B. Give an example using the above relation to explain the modification anomaly.
C. Give an example using the above relation to explain the deletion anomaly.
2. The relational schema R = (A, B, C, D, E) has the following functional dependencies:
A B
C B
DE C
A. What are the key(s) of R? Show your work to prove each key is a key.
B. Is R(A, B, C, D, E) in BCNF? Why or why not? If not, decompose this relation into BCNF. What are the final relations?
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