[Study notes] database design overview _ MySQL

Source: Internet
Author: User
[Study notes] database design overview bitsCN.com

References
Database design-Conceptual Design, Logical Design, Physical Design
Conceptual ~ Logical ~ Physical Models

Database design steps:

Generally, designing a database goes through five stages: Requirement Analysis, conceptual design, Logical Design, and physical design. Note that there is no general agreement which defines these terms, nevertheless data modelers generally understand the approximate scope of each.

  • The conceptual model is concerned with the real world view and understanding of data;
  • The logical model is a generalized formal structure in the rules of information science;
  • The physical model specifies how this will be executed in a participant DBMS instance.

Conceptual design)

Definition: A conceptual entity-relationship model shows how the business world sees information.

The following three things must be done in the conceptual design phase:

  • Constructing the ER Model
  • Check the model for redundancy
  • Validating the model against user transactions to ensure all the scenarios are supported

Note:

1) A conceptual model suppresses non-critical details in order to emphasize business rules and user objects.
2) It typically provided des only significant entities which have business meaning, along with their relationshiphotoshop/target = _ blank class = infotextkey> ps.
3) A conceptual model may include a few significant attributes to augment the definition and visualization of entities. No effort need be made to inventory the full attribute population of such a model.
4) A conceptual model may have some identifying concepts or candidate keys noted but it explicitly does not include a complete scheme of identity, since identifiers are logical choices made from a deeper context.

Logical design)

There are two things to do in the logic design phase.

  • Table Generation From ER Model
  • Normalization of Tables

Note:

1) According to the concept design phase to the E-R diagram to generate a specific data table, consider the E-R graph entity between the corresponding relationship into the corresponding relationship of the data table. There may be three relationships between different entity in the E-R diagram

  • One-to-one: When creating A table, the one-to-one relationship is achieved by using the primary key of Table A as the foreign key pointing to the primary key of Table B. We recommend that you merge the two entities in A one-to-one relationship into one entity, that is, merge the tables A and B into one.
  • One-to-multiple: use A non-unique field in Table A as the foreign key to point to the primary key of Table B to implement one-to-multiple relationships.
  • Replicate-to-sequence: generally, A new table C must be created out of the tables A and B to realize the many-to-many relationship between A and B.


2) normalization of data tables, that is, to make data tables meet various paradigms, but it is usually enough to satisfy the first three paradigms. (For more information about the paradigm, see database design paradigm and BCNF.)
3) It is also said that in the logical design phase, we should not obtain the specific data tables in the database, but a more complete entity diagram, in fact, it is okay to show whether the graph is entity or the table in the database. In any case, the key point of this step is that every entity must have a complete attribute and identity, unlike the previous step, when creating a conceptual model, you only need to indicate the main fields and keys to express the logical relationship between entity. In addition, the logical data model cannot have a relation between-to-minus, which must be implemented by converting the between-to-minus relation in the conceptual design stage into an intermediate table (or an intermediate entity.

Physical design)

Definition: The physical data model specifies implementation details which may be features of a particle product or version, as well as configuration choices for that database instance

Conceptual design, Logical Design, physical design results:

E-R diagram:

The E-R diagram is not just used to design conceptual models, in fact: There are three types of ERDs: the conceptual, the logical, and the physical, which support modeling of data in three levels of specific action from conceptual data model to implementation of a specific database.

BitsCN.com

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.