Week 3 Flashcards

1
Q

What is Multiplicity?

A

Number of possible occurences of an entity type that may relate to a single occurrence of an associated entity type through a particular relationship

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

What are examples of Binary Relationships?

A

One-to-One (1:1)

One-to-Many (1:*)

Many-to-Many (:)

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

What does 0..1 mean?

A

0 or 1 entity occurence

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

What does 1..1 (or just 1) mean?

A

Exactly 1 entity occurence

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

What does 0..* (or just *) mean?

A

Zero or many entity occurences

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

What does 1..* mean?

A

One or many entity occurences

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

What does 3..7 mean?

A

Minimum of 3 up to maximumm of 7 entity occurences

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

What does 1, 5, 10-12 mean?

A

1 or 5 or 10 to 12 entity occurences

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

What is Cardinality?

A

Maximum values for the multiplicitiy ranges on either side of the relationship

One-to-One (1:1)

One-to-Many (1:*)

Many-to-Many (:)

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

What is Participation?

A

Minimum values for the multiplicity ranges on either side of the relationship

Optional participationn (if 0)

Mandatory participation (if 1 or more)

eg. participation of 1..* is mandatory as 1 is the minimum

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

What is a Fan Trap?

A

May exist where two or more 1:* relationships fan out from the same entity

A fan trap in databases happens when one item is connected to multiple related items, making it confusing to aggregate data correctly

Fixed by changing structure of the database

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

What is a Chasm Trap?

A

A chasm trap in databases occurs when there’s a gap in relationships between entities, making it hard to connect data correctly

Fixed by changing the structure of the database

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

What is the difference between a Fan Trap and a Chasm Trap?

A

Fan Traps: Path between certain entity occurences is ambiguous

Chasm Traps: Pathway does not exist between certain entity occurences - pathway connection missing

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

Steps for Conceptual Database Design

A
  1. Identify entity types
  2. Identify relationship types
  3. Identify and associate attributes with entity and relationship types
  4. Determine primary keys for entity types
  5. Identify Multiplicity constraints
  6. Consider use of enhanced modeling (optional)
  7. Check model for redundancy traps
  8. Validate conceptual model against user transactions
  9. Review conceptual data model with user
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is an example of a One-To-One (1:1) Relationship?

A

Staff ID ————–> name
1..1 manages 0..1

Exactly one professor is needed to manage a discipline

Professor could manage at most 1 discipline. Not all professors do management therefore 0..1

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

What is an example of a One-To-Many (1:*) Relationship?

A

staffNo ————–> studentNo
1 Tutors 0..*

One staff member tutors 0 to many students

17
Q

What is a Many-To-Many (:) Relationship?

A

newspaperName ———> PropertyForRent
Advertises
0..* 1..*

Each property is advertised in zero or more newspapers

Each newspaper may advertise one or more properties for rent

18
Q

What is Specialisation?

A

Process of maximising the differences between members of an entity by identififying their distinguishing characteristics

19
Q

What is Generalisation?

A

The process of minimizing differences between entities by identifying their common characteristics

Grouping entities with common attributes into one super-type

Subtypes of a super-type don’t need to have their primary key displayed in their attributes as its displayed in the super-type

20
Q

What are the 2 types of Participation Constraint?

A

Optional

Definition: An entity may participate in a relationship, but it’s not required

Example: An employee may have a car but doesn’t have to

Mandatory

Definition: An entity must participate in a relationship

Example: A student must have an enrollment in a course

21
Q

What are the 2 types of Disjoint Constraint?

A

And - If there is overlaps between roles

Or - if there is not overlaps between roles

22
Q

What is an example of a Specialisation/Generalisation constraint?

A

{Optional, And}

First part is the Participation Constraint

Second part is the Disjoint Constraint

23
Q

What is Aggregation?

A

An abstraction through which relationships are treated as higher-level entities

24
Q
A