mysql-(iii)-The three paradigms of database design

Source: Internet
Author: User

I. The location of the database design in the business process

To abstract the original requirements into a business model when required analysis

Written requirement Specification < requirement Specification >

Overview design

Extract entities: Entity model, business model (Java Class)

Database design:

Data model, business model/entity model

Detailed design

...

Two. Three main paradigms of database design

First paradigm: Requires that each field of a table must be an indivisible independent unit

Counter Example

such as: Student  
The name has a name that was used and now

Student name Xiao Wang |

Inquiry inconvenience = = Illegal first paradigm

Student name Old_name = = = In accordance with the first paradigm

Second paradigm: On the basis of the first paradigm, each table is required to express only one meaning. Each field in the table has a dependency on the primary key

Counter Example

Employee (Employee): Worker number   employee name   Department name  order name-violation of second normal form

Order name to design an order form to conform to the second paradigm

The third paradigm: on the basis of the second paradigm, it is required that only the primary key can directly determine the dependencies of each table except the primary key.

Employee Table: Employee number (primary key)  employee name   Department number      ...

The department name is related to the department number, and it is related to the employee number.

The solution is to create two tables, plus external constraints.

mysql-(iii)-The three paradigms of database design

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.