GPT E/R Model Flashcards

1
Q

Who developed the E/R model and what is its purpose?

A

Peter Chen in 1976 for conceptual database design using graphical representation

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

What are the core constructs of the E/R model?

A
  • Entity
  • Relationship
  • Attribute
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Entity

A

Class of objects with common properties and unique name

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

Relationship

A

Logical link between two or more entities

STUDENT “attends” COURSE

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

Attribute

A

Propoerties of entities or relationships

Name, BirthDate, etc.

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

Cardinality constraints

A

Rules specifying minimum and maximum participation in relationships or attributes

Why attributes too? Well we have recursive relationships?

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

Weak entity

A

An entity that depends on another entity for identification

Primary key the foreign key

Order Item is a weak entity to Order for example

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

Composite attributes

A

Aggregate of multiple attributes

City + Street = Address

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

Recursive relationships

A

Entity relates to itself

PERSON “friends” PERSON

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

Generalization in the E/R Model

A

A hierarchy where child entities inherit properties from a parent entity.

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

Data Dictionary

A

Documentation of entities, relationships, and their attributes with descriptions

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

Two types of E/R notations

A

DB-Main and Crow’s Foot

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

Main limitations of E/R model

A
  • Cannot express all integrity constraints
  • Requires additional documentation to bridge design gaps
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How is E/R model used in reverse engineering?

A

To analyze and redesin existing databases lacking conceptual-level documentation

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

Ternary relationship

A

A relationship involving three entities

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

What is an identifier in the E/R model?

A

An attribute or combination of attributes that uniquely identify an entity

Primary Key

17
Q

What is a subset in E/R Modeling?

A

A special hierarchy where a specialized class (STUDENT) is a subset of a parent entity (PERSON)

Don’t get how this hierarchy is special

17
Q

Why is documentation important in E/R modeling?

A

To supplement the model’s expressiveness and ensure clarity in design and implementation

18
Q

What kind of key does a weake entity use?

A

A composite key that includes a foreign key from the strong entity

19
Q

Entity-level cardinality

For my own confusion I added this card

A

General rules about how many isntances of an entity can relate to another entity

How we see it modeled, but enforced at instance level

Most of the time its only one instance from an entity thats relating to another soooo, i mean otherwise it would be a many to many relationships requiring another table

20
Q

Implicit constraints

A

Inherent design to E/R model

21
Q

Explicit constraints

A

Defined by database designer to enforce business rules

22
Q

When is it necessary to create a relationship table?

A
  • Many-Many relationships
  • Relationships have attributes (ENROLLMENT includes EnrollmentDate)