Entity relationship modelling Flashcards

1
Q

What does an ER diagram aim to do?

A

Facilitate database design

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

What is an entity?

A

A person, place, object, event or concept

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

What is an entity type?

A

A collection of entities that share common properties or characteristics

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

What is an entity instance?

A

A single occurrence of an entity type

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

What types of entity can we have?

A
  • Strong entity type
  • Weak entity type
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Explain a strong entity type

A

An entity type that exists independently of other entity types

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

Explain a weak entity type

A

An entity type who’s existence depends on some other entity type

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

Give a practical example of a strong and weak entity type

A

Person is a strong entity type, license is a weak entity type (t relies on the existence of people)

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

What is the identifying owner of an entity type?

A

The entity type on which the weak entity type depends on

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

What is the identifying relationship of an entity type?

A

The relationship between a weak entity type and its owner

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

What is an attribute in terms of entitys?

A

A property or characteristic of an entity or relationship type

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

What are the different types of attribute we can have?

A
  • Simple (atomic) attribute
  • Composite attribute
  • Multivalued attribute
  • Identifier
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a simple (atomic) attribute?

A

An attribute that cannot be broken down into smaller components
- Name

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

What is a composite attribute?

A

An attribute that has meaningful component parts
- Address

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

What is a multivalued attribute?

A

An attribute that may take on more than one value for a given entity
- Skill

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

What is an identifier attribute?

A

An attribute whose value distinguishes instances of an entity type
- StudentID

17
Q

What is a relationship type?

A

A meaningful association between entity types

18
Q

What is a relationship instance?

A

An entity that is connected to exactly one other entity

19
Q

What is an associative entity?

A

An entity that is connected to many different entities

20
Q

What is a mandatory relation?

A

Relation must occur once
- Each patient has a patient history

21
Q

What is an optional relation?

A

Relation does not have to occur
- Each person can be married to another but doesn’t have to be

22
Q

What is the degree of a relationship?

A

The number of entity types that participate in a relationship

23
Q

What are the 3 different defined relationships we can have between entities?

A

Unary relationship
Binary relationship
Ternary relationship

24
Q

What is a unary relationship?

A

A relationship between a single entity type

25
Q

What is a binary relationship?

A

A relationship between two entity types

26
Q

What is a ternary relationship?

A

A relationship between three entity types

27
Q

What is a cardinality contraint?

A

A rule which specifies the number of relations an entity can have

28
Q

What is a minimum cardinality?

A

The minimum number of relationships an entity can have

29
Q

What is a maximum cardianlity?

A

The maximum number of relationships an entity can have

30
Q

What are the two types of ER notation?

A

Crowfoot
CHEN notation

31
Q

Describe a crowfoot diagram

A
  • Entities are in boxes
  • Attributes in the same box
  • Relationships shown by crow feet
  • Mandatory one ||
  • Mandatory Many | crows
  • Optional one o|
  • Optional many o crows
32
Q

Describe a chen notation diagram

A
  • Entities are boxes
  • Attributes are ovals connected
  • Relationships are shown by lines with dots
  • Mandatory one 1..1
  • Mandatory many 1..M
  • Optional one 0..1
  • Optional Many 0..M