Chapter 6: Entity-Relationship Model Flashcards

1
Q

What drives everything done in Databases?

A

The business

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

Who was the Entity-Relationship Model designed for?

A

The general public, but it is still as powerful as the relational and RDB models.

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

What is the purpose of the ER model?

A

It is supposed to allow a variety of experts to contribute regardless of their technical knowledge about databases.

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

How can a database be modeled?

A

A database can be modeled as a collection of entities and a relationship among entities.

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

What is an entity?

A

An entity is an object that exists and is distinguishable (avoiding duplicates) from other objects.

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

What is an entity set?

A

A set of entities of the same type that share the same properties.

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

What are attributes?

A

Essential characteristics that are determined by the business. Entities have attributes.

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

What is a relationship?

A

An association among several entities. It is modeled by Keys in a relationship set.

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

What is a relationship set?

A

A mathematical relation among at least 2 entities, each taken from entity sets.

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

What is an attribute?

A

An attribute is a possible property of a relationship set. Entities are represented by sets of attributes.

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

What is the degree of a relationship set?

A

It is the number of entity sets that participate in a relationship set. 2 sets is binary, etc. Relationship sets that are more than binary are rare.

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

What is the domain of an attribute?

A

The domain is the set of permitted values (legal values) for each attribute.

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

How are multiple values handled in RDB?

A

They are handled by linking tables together, breaking down complex attributes into its atomic subcomponents.

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

What type of attributes are there?

A

Atomic (simple) and complex.

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

What type of attribute must each attribute in an entity set be?

A

Simple (atomic)

-in RDB this looks like each row in the table being a simple attribute

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

Who determines if an attribute is simple of composite?

A

THE BUSINESS

17
Q

What is the purpose of mapping cardinality constraints?

A

To express the number of entities to which another entity can be associated via a relationship set.

18
Q

For a binary relationship what are the types of cardinality mapping that can be done?

A
  • one to one
  • one to many
  • many to one
  • many to many
19
Q

What is one to one cardinality?

A

An element in A is mapped directly to a single attribute in B

20
Q

What is one to many cardinality?

A

An element in A is mapped to multiple elements in B

21
Q

What is many to one cardinality?

A

Many elements in A is mapped to one element in B

22
Q

What is many to many cardinality?

A

When many elements in A are mapped to many elements in B

23
Q

Name the 3 types of keys that exist.

A
  • super key: a set of one or more attributes whose values uniquely determine each entity
  • candidate key: the minimal super key
  • primary key: a candidate key that is selected to be the main identifier
24
Q

What is the purpose of keys?

A

To avoid duplicates and maintain uniqueness within the set.

25
Q

What are the characteristics of keys?

A
  1. unique
  2. short
  3. permanent
26
Q

What is a key?

A

a set of attribute(s), they are a subset of an attribute