About database standardization

Source: Internet
Author: User

First paradigm

Each field in the table must contain only one type of data, and each data must be stored in only one place.

Example of a violation of the first paradigm: a field contains two data, or duplicate fields.

Second paradigm

When a table already complies with the first paradigm, and each table contains data with only one entity.

During the operation, you only need to ensure that the primary keyword of each table can be identified, and all non-key fields depend on this primary keyword rather than other fields.

Tip: to implement the many-to-many relationship in SQL Server, you need to use an intermediate connection table to break down the relationship into two one-to-many relationships.

Third paradigm 

The database must conform to the second paradigm, and all non-Keyword fields must directly rely on the primary keyword.

The most obvious violation of the third paradigm is the calculation field.

Another way to consider the third paradigm is to make each table contain only one thing of information.

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.