Is a candidate key determinant good enough for BCNF?

半城伤御伤魂 提交于 2019-12-11 20:06:43

问题


A question that came up in my homework is as follows:

  • If a determinant is part of a candidate key, is that good enough for BCNF?

I don't think so, because a relation is in BCNF if all non-key attributes depend on the whole primary key, and nothing else. This says the determinant is part of a candidate key, so does this imply a partial functional dependency?

However, I began to second guess myself because there's a possibility that the candidate key is a super key, but it doesn't seem like that is the case.

What do you think?


回答1:


What does the question mean by "part"? Some but not all of? Some or all of? What do you mean by it?

The definition of partial functional dependency uses "partial" to mean some but not all of.

Check definitions of BCNF. The one that requires that no non-prime attribute be partially functionally dependent on any key also requires other things than you wrote. So your "if" is not correct. But if the assignment question's "part" means "part of but not all of" as in "partially dependent" then by the relevant definition of BCNF the relation is not in BCNF.

All candidate keys are superkeys. But the candidate keys are the superkeys that do not contain any smaller superkeys. Superkeys are involved in a different form of the definition of BCNF. But if BCNF is violated according to one definition and what you know, it can't possibly be allowed by another one.



来源:https://stackoverflow.com/questions/26821417/is-a-candidate-key-determinant-good-enough-for-bcnf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!