Answer to Question #269066 in Databases | SQL | Oracle | MS Access for saurav kumar

Question #269066

Given a relation R( P, Q, R, S, T, U, V, W, X, Y) and Functional Dependency set FD = { PQ → R, PS → VW, QS → TU, P → X, W → Y }, determine whether the given R is in 2NF?Describe anomalies of database.(10marks)



1
Expert's answer
2021-11-21T04:58:05-0500

Solution: Let us construct an arrow diagram on R using FD to calculate the candidate key.



From above arrow diagram on R, we can see that an attributes PQS is not determined by any of the given FD, hence PQS will be the integral part of the Candidate key, that is, no matter what will be the candidate key, and how many will be the candidate key, but all will have PQS compulsory attribute.

The relation R is not in 2NF as the attribute X depends on the proper subset(p) of the candidate key(PQS), hence it exhibits partial dependency.


Anomalies is a blip, abnormality on the screen that doesn't fit with the rest of the pattern.

Types include:

Insert Anomaly: An insert anomaly occurs when attribute cannot be inserted without the presence of other attributes

Update Anomaly: Occurs when duplicated data is updated at one instance and not all instances where it was duplicated

Delete Anomaly: Deletion of attributed which causes deletion of other attributes



Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS