Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Table 2.3
Integrity Rules Revisited
Table 2.4
The Data Dictionary and
the System Catalog
• Data dictionary contains metadata to provide detailed accounting of
all tables within the database.
Table 2.6
Relationships within the Relational
Database
• E-R Diagram (ERD)
– Rectangles are used to represent entities.
– Entity names are nouns and capitalized.
– Diamonds are used to represent the
relationship(s) between the entities.
– The number 1 is used to represent the “1”
side of the relationship.
– The letter M is used to represent the “many”
sides of the relationship.
The Relationship Between Painter and Painting
Figure 2.17
An Alternate Way to Present the Relationship
Between Painter and Painting
Figure 2.18
A 1:M Relationship: The CH2_MUSEUM Database
Figure 2.19
The 1:M Relationship Between Course and Class
Figure 2.20
The M:N Relationship Between Student and Class
Figure 2.22
Sample Student Enrollment Data
Table 2.7
A Many-to-Many Relationship Between Student and Class
Figure 2.23
Changing the M:N Relationship to Two 1:M Relationships
Figure 2.25
The Expanded Entity Relationship Model
Figure 2.26
The Relational Schema for the Entity Relationship Diagram
in Figure 2.26
Figure 2.27
Data Redundancy Revisited
• Proper use of foreign keys is crucial to
exercising data redundancy control.