L2: Entity-Relationship Model Flashcards
1
Q
Benefits of using
Subclasses in
E/R Diagrams
A
- Certain entity sets might have special cases
- Allows inheriting the entity set’s attributes
- Creates a subclass with new, specialized attributes
- Useful to reduce nulls
2
Q
E/R Diagram:
Types of Constraints
A
- Key Constraints
- Single Value Constraints
- Participation Constraints
- Referential Constraints
- Numerical Constraints
3
Q
Converting E/R Diagrams
into Relations
(Basic Idea)
A
- Entities become Relations (tables)
- Relationships ALSO become Relations
- Attributes become the Columns within the Relations
- Relationships use the Keys of the related entities, plus any additional attributes
- Many-to-One:
- The Entity Set with “Many” just has a Foreign Key to the set with “One”
4
Q
E/R Model:
Parts of the Model:
Rectangles
A
Rectangles represent
Entity Sets
Basically Classes or Types of Entities
5
Q
What is Tuple Variable Ambiguity?
A
When two different tables (tuples) have the same variable name.