Chapter 3 Entity-Relationship (ER) Model Flashcards

1
Q

What is an entity and what is an attribute?

A

An entity is an object or concept in the database, such as a “customer.” An attribute is a characteristic of an entity, such as “name” or “address.”

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

What is the difference between simple and composite attributes?

A

A simple attribute cannot be divided further (e.g., a person’s first name). A composite attribute can be divided into smaller subparts (e.g., an address can be divided into street, city, and zip code).

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

What is the difference between single-valued and multi-valued attributes?

A

A single-valued attribute holds only one value (e.g., a person’s birthdate), while a multi-valued attribute can hold multiple values (e.g., a person’s phone numbers).

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

What is the difference between stored and derived attributes?

A

A stored attribute holds data that is physically stored in the database, while a derived attribute is calculated from other attributes (e.g., age derived from birthdate).

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

What are cardinality, degree, and optionality in relationships?

A

Cardinality refers to the number of instances of an entity involved in the relationship. Degree is the number of entities involved in the relationship. Optionality refers to whether an entity’s participation in a relationship is mandatory or optional.

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

What is a weak entity?

A

A weak entity is an entity that cannot be uniquely identified by its own attributes alone and relies on a strong (parent) entity for identification.

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

What are supertype and subtype entities?

A

A supertype is a general entity that contains common attributes for related subtypes, which represent more specialized entities.

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