Can anyone explain me 1NF, 2NF, 3NF, BCNF rules wi

2020-06-03 08:14发布

This is a common interview question. I faced one interview where the interviewer gave me one table and asked me tell him which normal form the table is in? If it's in ##NF, then normalize it to the next NF?

I'm always get confused between these normal forms of database. Can anyone explain to me these normal forms with a proper example of how each NF is modeled into table so it will help in my next interview?

1条回答
孤傲高冷的网名
2楼-- · 2020-06-03 08:33

Boyce Codd Normal Form is really the most important and also the easiest to explain: Every non-trivial determinant is a superkey (just remember "arrows out of superkeys"). The lesser normal forms are only worth mentioning because BCNF is not dependency-preserving in a few cases.

Examples of BCNF and 5NF by Hugh Darwen:

For more mathematical definitions (Abiteboul et al):

查看更多
登录 后发表回答