Class 03. Flashcards

ERDs + relationships

1
Q

what are entities?

A

the database “nouns” (signal the problem)

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

what are attributes?

A

characteristics of entities

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

what is a key attribute?

A

a unique identifier

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

what are multi varied attributes?

A

more than one values for an attribute (ie. address + number)

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

what is a composite attribute?

A

an attribute of an attribute

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

what is a candidate key?

A

the minimal set of attributes we can identify a record with + non-duplicate (one of these are the primary keys)

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

what are relationships?

A

how entities relate (the verbs)

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

T/F: relationships can’t have attributes

A

false

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

what is cardinality?

A

“at most one” participation

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

identify a many-to-one relationship

A

arrow on one side

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

identify a one-to-one relationship

A

arrows on both sides

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

what is participation constraint?

A

“at least one” participation

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

what are subclasses?

A

child of a parent entity connected by a merge (ie. grad vs undergrad)

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

what is a ERD pitfall to avoid?

A

over-specifiying attributes

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

how to create an ERD?

A
  1. list entities
  2. list attributes
  3. confirm primary keys
  4. establish relationships
  5. confirm cardinalities
  6. confirm participation constraints
How well did you know this?
1
Not at all
2
3
4
5
Perfectly