Entities and attribute Flashcards

2

1
Q

Entities definition

A

A type of thing on which an organisation may wish to hold data.

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

Attributes definition

A

The data we need to know/collect about each entity.

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

Types of attributes:

A

– Simple (atomic) attributes
– Composite attributes (many parts)
– Single-valued
– Multi-valued attributes
– Derived attributes

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

Simple attributes example

A

student_name

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

Composite attributes example

A

Name = title + initial + surname

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

Single- valued example

A

Exam grade

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

Multi-valued attributes

A

Hobbies

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

Derived attributes example

A

wage is derivable from hours worked*hourly rate

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

Attribute domain definition

A

The set of all possible values of an attribute is the attribute domain. e.g. the domain for the attribute month could be January, February, March,…..

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

Relationships definition

A

How 2 or more entities are linked to one another.
e.g. Lecturer teaches Module.
Student attends Module.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
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
12
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
13
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
14
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
15
Q

Many to many relationship example

A

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

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

Primary key definition

A

A primary key is the attribute that uniquely identifies an entity.

17
Q

Foreign key definition

A

Foreign keys link data in one table to the data in another table.

18
Q

Relationships add extra data and entities why?

A

Creating the relationship is part of the transaction process (e.g., an order is linked to a customer).
Given one entity the others may be traced.

19
Q

Keys

A

Keys create the relationships between entities