Chapter 3 Conceptual Database Design
Chapter 3 Conceptual Database Design
Logical Design
Physical Design
Entities
Corresponds to entire table, not row.
Represented by Rectangle
Attributes
Represents the property used to describe an entity or a relationship
Represented by Oval
Relationships
Represents the association that exist between entities
Represented by Diamond
Constraints
Represent the constraint in the data
Before working on the conceptual design of the database, one has to know and
answer the following basic questions.
What are the entities and relationships in the enterprise?
What information about these entities and relationships should we store in the
database?
What are the integrity constraints that hold? Constraints on each data with
respect to update, retrieval and store.
Represent this information pictorially in ER diagrams, then map ER diagram into
a relational schema.
CompositAttribute
Composite Attribute
Attribute Multi-Valued Attribute
Age
Enrolled_in
Acedamic_year Semeste
Grade r
One-to-one relationship
A customer is associated with at most one loan via the relationship borrower
A loan is associated with at most one customer via borrower
1..1 0..1
Employee Manages Branch
One-To-Many Relationships
In the one-to-many relationship a loan is associated with at most one customer
via borrower, a customer is associated with several (including 0) loans via
borrower
1..1 0..*
Employee Leads Project
Many-To-Many Relationship
A customer is associated with several (possibly 0) loans via borrower.
A loan is associated with several (possibly 0) customers via borrower.
0..* 0..*
Instructor Teaches Course