ER Model Flashcards

1
Q

What are the 6 database design steps?

A
  1. Requirements
  2. Conceptual Design (ER Model)
  3. Logical Design (Relational DM, Output: schema)
  4. Scheme Refinment
  5. Physical Database Design
  6. Application and Security Design
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the purpose of the ER model?

A

Sketch database designs to see the kinds of data and how they connect

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

What is an entity?

A

A thing or object; Eg: Student

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

What is an entity set?

A

A collection of similar entities; ex Students in UF

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

What is an attribute?

A

A property of an entity

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

What is a relationship?

A

Connects two or more entity sets

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

What are roles?

A

Roles are used when an entity set appears more than once in a relationship. Use edges between the relationship and entity set with names called roles.

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

What are many-many relationships?

A

An entity set can be connected to many to many entities of the other set. No participation constraints.

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

What are the many-one relationships and how are they represented?

A

Use an arrow entering the one side. Rounded arrow is exactly one; regular arrow is at most one.

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

How are one-to-one relationships represented?

A

An arrow entering both entity sets.

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

When are weak entity sets used?

A

When entities need help to identify them uniquely

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

How are weak entities represented?

A

Double diamond for supporting many-to-one with total participation (exactly one).
Double rectangle for weak entity set.

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

What is the key for a weak entity set?

A

Its own underlined attributes and the keys for the supporting entity sets.

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

What is aggregation?

A

Allows us to treat a relationship set as an entity set for purposes of participation in other relationships.

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

What are 3 design techniques for ER?

A
  1. Avoid redundancy
  2. Don’t use an entity set when an attribute will do
  3. Limit weak entity sets
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Under what conditions should an entity set be used instead of an attribute?

A
  1. It is more than that name of something; it has at least one non key attribute
  2. It is the many in a many-to-one; many-many relationship
17
Q

When do we need weak entities?

A

When there is no global authority capable of creating unique IDs.