1. The Database Design Process
There are three major stages in the database design.
- Requirements analysis
- Conceptual design
- Logical design
2.The Entity Relationship(ER) Model
- Representing Entities
- Representing Relationships
- Partial and Total Participation
- Entity or Attribute?
- Is the item of direct interest to the database?
- Does the item have component of its own?
- Can the object have multiple instances?
- Is the object often nonexistent or unknown?
- Entity or Relationship?
- Intermediate Entities
- Weak and Strong Entities
3.Database Normalization(数据库规范化)
The main objective of the normal forms is to reduce data redundancy and improve data integrity.
- The first normal form(1NF) [No Repeating Groups]has the following goals:
- Eliminate repeating groups in individual tables.
- Create a separate table for each set of related data.
- Indentify each set of related data with a primary key.
- The goals of Second normal form(2NF) [Eliminate Redundant Data]are:
- Create separate tables for sets of values that apply to multiple records
- Relate these tables with a foreign key.
- Third normal form (3NF) [Eliminate Data Not Dependent on Key]adds one more goal
- Elimate fields that do not depend on the key.
4.Using the Entity Relationship Model
- Mapping Entities and Relationships to Database Tables
- Map the entities to database tables
- Map the relationship to database tables
- Creating a Bank Database ER Model
- Many to many relationship(N:M)
- One to many relationship(1:N)

被折叠的 条评论
为什么被折叠?



