Entity relationship Flashcards

1

1
Q

Relationship add extra data and entities why?

A

Creating the relationship is part of the transaction process.
Given one entity the others may be traced.

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

Relationships

A

How 2 or more entities are linked to one another.

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

Cardinality definition

A

How many instances of an entity relate to one instance of the other entity.

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

Cardinality examples

A

One to one
One to many
Many to many

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

One to one relationship example

A

Each country has one capital.
Each capital has one country.

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

Many to many example

A

Each recipe uses many ingredient.
Each ingredient is used in many recipes.

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

One to many relationship

A

Each student has one tutor.
Each tutor has many students

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

Simple attributes example

A

student_name

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

Derived attributes

A

wage is derivable from hours worked*hourly rate

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

Single-valued example

A

Exam grade

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

Composite attributes

A

Name= title + initial + surname

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