Database paradigm summary 1NF2NFBCNF3NF4NFDBnormalform

Source: Internet
Author: User
1.1NF indicates that each variable in the link cannot be further divided into 2.2NF indicates 1NF, for example (S #, C #) p-SN, (S #, C #) for p-SD, S #-SD, the SD part depends on the candidate key, instead of 2NF, it can only be 1NF; it is decomposed into SC (S #, C #, g) and S_SD (S #, SN, SD, DEAN) are 2NF3. BCNF refers to elimination

1. 1NF indicates that every variable in the link cannot be divided into 2. 2NF indicates the 1NF that eliminates the dependence of some non-primary attribute pairs (candidate key), for example (S #, C #) p-SN, (S #, C #) p-SD, S #-SD, so the SD part depends on the candidate key, instead of 2NF, it can only be 1NF; it is decomposed into SC (S #, C #, G) and S_SD (S #, SN, SD, DEAN) are 2NF 3. BCNF refers to elimination

1. 1NF indicates that each variable in the link cannot be further divided.

2. 2NF indicates the 1NF that eliminates part of the non-master attribute pair code (candidate key) dependency.

For example, if (S #, C #) p-> SN, (S #, C #) p-> SD, S #-> SD, the SD part depends on the candidate key, not 2NF, it can only be 1NF. It is decomposed into SC (S #, C #, G) and S_SD (S #, SN, SD, DEAN) as 2NF.

3. BCNF indicates the 2NF that eliminates the dependency of the main attribute pair code (candidate key ).

For example, (S #, C #)-> T #, T #-> C # Is Not BCNF, because candidate is (S #, T #), (S #, C #), the main attribute C # is partly dependent on (S #, T #), so it is not BCNF; it can be divided:

(S #, T #), (T #, C #) two tables

4. 3NF indicates the BCNF that eliminates the transfer dependency.

For example, S #-> SD, SD-> DEAN is not 3NF. Because DEAN transmission depends on S #, it can be divided into STUDENT (S #, SN, SD) and DEPT (SD, DEAN)

4. 4NF indicates 3NF that eliminates multi-value dependencies.

For example:

The original primary keys are (C #, T #, B #), which are divided into (C #, T #) and (C #, B #)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.