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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

E/R Diagram:

Types of Constraints

A
  • Key Constraints
  • Single Value Constraints
  • Participation Constraints
  • Referential Constraints
  • Numerical Constraints
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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”
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

E/R Model:

Parts of the Model:

Rectangles

A

Rectangles represent

Entity Sets

Basically Classes or Types of Entities

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is Tuple Variable Ambiguity?

A

When two different tables (tuples) have the same variable name.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly