The study of SQL S2 semester

Source: Internet
Author: User

Chapter I.

Design of the database

A good database design

1

, save the database storage space

2

, to ensure the integrity of the data

3

, facilitate the development of database application system

Poor database design

1

, low efficiency

2

, updating, and retrieving data, there are many problems

Steps to design a database

1

, demand analysis phase

Analyze customer's business and data processing needs

Collect information

Identifying objects

(

Entity

)

Identify the details that each object needs to store

Identify the relationships between objects

2

, Outline design phase

Drawing the Database

E-r

Model Diagram

(

Entity Relationship Diagram

)

3

, Detailed design phase

Will

E-r

Graph converted to multiple tables

,

Make a logical design

,

and apply the three major specifications of database design into

Line Design

4

, Code authoring phase

Map cardinality

1

One

2

One-to-many

3

Many-to-one

4

Many-to-many

Entity Relationship Diagram

Rectangles represent entity sets

Ellipse Representation Property

Diamond represents a relationship set

Straight lines are used to connect

Designing Database Problems

1

Information duplication

2

Update exception

3

Insert exception

(

Unable to represent certain information

)

4

Delete exception

(

Loss of useful information

)

Three normative theories of database design

One

The objective of the first paradigm is to ensure that

The atomicity of each column

Two

The objective of the second paradigm is to ensure that

Each column in the table is associated with the primary key

Three

The objective of the third paradigm is to ensure that

Each column is directly related to the primary key

,

Rather than indirectly related

(

Cannot pass dependent

)

The relationship between normalization and performance

In case of necessity

Allow appropriate data redundancy

The study of SQL S2 semester

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.