문제

What is the highest normal form of relation R(A,B,C,D), given FDs A--> B; CD--> B; A--> CD; CD--> A ? Please not only give the answer but also give a step by step approach to solve a problem of this kind.

도움이 되었습니까?

해결책

The candidate keys are A and CD, which you can determine by inspection in this case. (It's a simple problem; you can determine the closures in your head.) A->B, A->CD; that's all the attributes. CD->A, CD->B; again, that's all the attributes.

Since all the arrows are arrows out of candidate keys, it's in at least BCNF. (That's the informal definition of BCNF.)

All database textbooks include at least one algorithm for determining all the candidate keys, and for normalizing a set of relations to 5NF. If you don't have one, Maier's The Theory of Relational Databases is available free a the author's faculty web site.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top