Thr Entity Relationship Model Flashcards

1
Q

What does Entity-Relationship (ER) modelling facilitate?

A

Database design and implementation that accurately reflects the needs of an organisation or system.

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

Define entity type in the context of ER modelling.

A

A group of objects with the same properties, identified by an enterprise as having an independent existence.

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

What is an entity occurrence?

A

Each uniquely identifiable object of an entity type.

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

What is the purpose of the ER model?

A

To support a user’s perception of data and conceal technical aspects of database design.

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

What are the basic concepts of the ER model?

A
  • Entity types
  • Relationship types
  • Attributes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What distinguishes a strong entity type from a weak entity type?

A

Strong entity types have independent existence; weak entity types are existence-dependent on another entity type.

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

What is a primary key?

A

A candidate key that is selected to uniquely identify each occurrence of an entity type.

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

What does the term ‘relationship type’ refer to?

A

A set of meaningful associations among entity types.

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

What is the degree of a relationship?

A

The number of participating entities involved in a relationship.

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

True or False: A recursive relationship involves the same entity type participating more than once.

A

True.

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

What is a composite attribute?

A

An attribute composed of multiple components, each with an independent existence.

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

What does a multi-valued attribute do?

A

Holds multiple values for each occurrence of an entity type.

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

Fill in the blank: An attribute that represents a value derivable from a related attribute is called a _______.

A

Derived attribute.

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

What is the notation used to represent a weak entity type?

A

A double rectangle.

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

What is meant by multiplicity in relationships?

A

The number (or range) of possible occurrences of an entity type that may relate to a single occurrence of an associated entity type.

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

What does a binary relationship involve?

A

Two participating entities.

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

How is a ternary relationship defined?

A

A relationship involving three participating entities.

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

What is a structural constraint?

A

Constraints that may be placed on entity types participating in a relationship.

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

What is the purpose of an ER diagram?

A

To visually represent how different pieces of data are related within a system.

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

What does the term ‘candidate key’ refer to?

A

A minimal set of attributes that uniquely identifies each occurrence of an entity type.

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

What is the significance of role names in relationships?

A

Role names clarify the purpose of each relationship.

22
Q

What type of attribute is ‘StaffNo’ in a Staff entity?

A

An example of a simple (or atomic) attribute.

23
Q

What is the maximum degree for relationships typically used in ER models?

A

Binary (two participating entities).

24
Q

What should an entity be according to ER modelling?

A
  • An object that will have many instances in the database
  • An object composed of multiple attributes
  • An object we are trying to model
25
Q

What is a derived attribute example in ER modelling?

A

Duration derived from rentStart and rentFinish.

26
Q

What is the notation for associating attributes with relationships?

A

Dashed line.

27
Q

What is the alternative notation for displaying an ER model?

A

There are various notations, but specific examples were not provided.

28
Q

What is the relationship type called that represents an association between two entities?

A

Has relationship.

29
Q

What is the multiplicity of a one-to-many relationship?

A

One entity can relate to many occurrences of another entity.

30
Q

True or False: A weak entity can be identified solely by its own attributes.

31
Q

What does the term ‘semantic net’ refer to in ER modelling?

A

A visual representation of relationships among entities.

32
Q

What is an example of a relationship occurrence?

A

A uniquely identifiable association, which includes one occurrence from each participating entity type.

33
Q

What is the multiplicity of the relationship between Newspaper and PropertyForRent?

A

Many-to-many (:) relationship

Each newspaper can advertise one or more properties, and each property can be advertised in zero or more newspapers.

34
Q

What does the notation ‘1..*’ beside the PropertyForRent entity signify?

A

Each newspaper can advertise one or more properties for rent

This indicates mandatory participation of PropertyForRent in the relationship.

35
Q

What does the notation ‘0..*’ beside the Newspaper entity signify?

A

Each property for rent can be advertised by zero or more newspapers

This indicates optional participation of Newspaper in the relationship.

36
Q

What are the two types of restrictions on relationships in multiplicity?

A

Cardinality and participation

Cardinality refers to the maximum number of occurrences, while participation indicates whether all or some entities participate.

37
Q

What is cardinality in the context of ER models?

A

Maximum number of possible relationship occurrences for an entity in a given relationship type

Examples include one-to-one (1..1), one-to-many (1..), and many-to-many (..*).

38
Q

What does mandatory participation mean in ER models?

A

All entity occurrences must participate in a relationship

Represented as a minimum value of 1 in multiplicity ranges.

39
Q

What does optional participation mean in ER models?

A

Only some entity occurrences participate in a relationship

Represented as a minimum value of 0 in multiplicity ranges.

40
Q

What is a fan trap in ER modeling?

A

A situation where a relationship between entity types is ambiguous due to multiple 1:* relationships from the same entity

Example: Two 1:* relationships coming from the same Division entity.

41
Q

What is a chasm trap in ER modeling?

A

A situation where a model suggests a relationship between entity types, but the pathway does not exist for certain occurrences

Example: A branch has staff overseeing properties, but not all properties are overseen.

42
Q

What is the minimum multiplicity of the Client entity in the ternary Registers relationship?

A

0..*

Indicates that a Staff entity at a Branch may register zero or more Clients.

43
Q

What is the multiplicity of the Branch entity when Staff/Client values are fixed?

A

1..1

Indicates that each Branch must have exactly one Staff member in the relationship.

44
Q

What is the UML notation for representing a primary key attribute?

A

PK_AttributeName

Primary key attributes are indicated with {PK} in UML notation.

45
Q

What does ‘DerivedAttributeName’ represent in UML notation?

A

An attribute that can be calculated from other attributes

Indicated with a forward slash (/) before the attribute name.

46
Q

How is a multi-valued attribute represented in UML notation?

A

MultiValuedAttributeName {min..max}

Indicates the range of possible values for the attribute.

47
Q

What does the notation ‘1..M’ signify in Chen’s notation?

A

One-to-many relationship

Indicates that one entity can be associated with multiple occurrences of another entity.

48
Q

What is indicated by a double rectangle in Chen’s notation?

A

Weak entities

Strong entities are represented with a single rectangle.

49
Q

What does the Crow’s Foot notation represent for a many-to-many relationship?

A

M:M

Indicates that multiple occurrences of one entity can be associated with multiple occurrences of another entity.

50
Q

What should you use for developing ER models in this module?

A

UML notation

Other notations will not be accepted in assessments.