Introduction to ER Modelling Flashcards

1
Q

What is the definition of entity

A

Real-world object distinguishable from other objects.

It is describe using a set of attributes

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

What is the definition of entity set?

A

A collection of entities of the same type (e.g all employees)
- All entities in an entity set have the same set of attributes
- Each entity has a key (underlined)

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

What is the definition of relationship?

A

Association among two or more entities
- Relationships can have their own attributes

Example: Fred works in the Pharmacy department

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

What is relationship set?

A

Collection of relationships of the same type

Example: Employees work in departments

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

What kind of relationship can an entity set participate in?

A

Different relationship sets

Different “roles” in the same set

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

What is the definition of key constraints?

A

They determine the number of objects taking part in the relationship set

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

What are the types of key constraints?

A

Many-to-many

One-to-Many/ Many-to-one

One-to-one

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

What is an example of many-to-many relationship?

A

An employee can work in many departments, but a department can have many employees

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

How is a many-to-many key represented in Chen Notation?

A

A line

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

What is a one-to-many relationship?

A

One-to-many constrains one entity set to have a single entity per a relationship

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

How is a one-to-many key represented in Chen Notation?

A

An arrow

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

How to identify a weak entity?

A

A weak entity can be identified uniquely only by considering (the primary key of) another (owner) entity

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

How is a weak entity represented in Chen Notation?

A

Bold rectangle

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

How is a weak entity’s partial key represented in Chen Notation?

A

A dashed underline

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

What is an owner entity set?

A

<Policy> and weak entity set [Dependent] must participate in a relationship where each entity has one and only one strong entity to depend on (key constraint)
</Policy>

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

What is the definition of multi-valued attributes?

A

Multi-valued attributes can have multiple (finite set of) values of the same type

Example: employees with a home phone number and work phone number

17
Q

What is the definition of composite attributes?

A

Composite attributes have a structure hidden inside (each element can be of different type)

Example: Employee address consists of postcode, street name and number

18
Q

What are the choices to be made in design phase?

A
  • Should a concept be modelled as an entity or an attribute?
  • Should a concept be modelled as an entity or a relationship?
  • Should we model relationships as binary. ternary, n-ary?
19
Q

What is an example of Entity vs Attribute

A

Should “address” be an attribute of Employees or an entity (related to Employees)?

20
Q

What is the justification or variables to the question:

Should “address” be an attribute of Employees or an entity (related to Employees)?

A

Depends upon how we want to use address information, and the semantics of the data

- If we have several addresses per employee, address must be an entity

- What if an address links to both Employee and WorkFromHomeContract
21
Q

What is participation constraints

A

explores whether all entities of one entity set take pat in a relationship

22
Q

What is total participation?

A

Total participation says that each entity takes part in “at least one” relationship and is represented by a bold line

Example: Every employee must work in at least one (Total) department. Each department has at least one(Total) employee

23
Q

What is partial participation?

A

Partial participation means that not every entity takes part in a relationship

Each department must have one (total) manager (but not everyone is a manager (P =optional)