L7 - Modelling business data Flashcards

1
Q

Data models facilitate clarification of…

A

the data the systems need to store and manage

the most efficient way of organizing the data

potential risks and challenges related to data within the organization

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

What it the aim of data modelling?

A

The data should be organized in logical groups with shared characteristics – constructing a model robust to change

Rules should be drawn up to ensure that all data are correctly entered and maintained

Data needs to be stored in one place only to avoid redundancies in the data model.

Identification of the most efficient way of organising data

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

What is the entity relation diagram?

A

Data modelling technique

ERD is a technique to achieve a satisfactory organization of a system’s data.

When making an ERD iterations are necessary in order to obtain a satisfactory data mode

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

What are entities, entity-types and entity-instances?

A

Entity – an object, about which the system needs to store data

The entity represents a number of entity occurrences

Entity-types describe the abstract characteristic of an object (e.g. Student, Car, or Country)

Entity-instances are the specific example/instance of the entity-type (e.g. John Johnson)

Not necessarily physical objects (e.g. rental, complaint)

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

What are relationships between entities?

A

Entities can be in relationships with one another: Entity Relationship Diagram

Relationships are modelled as straight lines between entities

Entities ”participate” in relationships

Binary relationships: two entities participate

Relationship-types “attend”

Relationship-instance “John” attends “AU”

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

What are attributes?

A

Attributes – the elements that make up the entity

The attributes recorded about the entity are only those of significance to the system

Attributes has values, e.g. ‘First name’ – value: Peter

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

What are primary keys?

A

The primary key is an attribute or combination of attributes that uniquely identifies one occurrence of an entity, such as one specific customer or product. The primary key could be a unique customer number

A primary key must always have a definite value (not 0), must be unique for all records, unchangeable, attribute that system developer has control of

As soon as an instance of an entity is created it must have a value assigned for its primary key

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

What is a candidate key?

A

All attributes that uniquely identifies a specific record in an entity are Candidate Keys e.g. student ID

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

What are foreign keys?

A

An entity may contain the primary key of another entity, which is then called a foreign key. Foreign keys act as links or navigation routes between related entities

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

What are cardinalities?

A

Between each entity, the relationship must be modelled.

The term ‘cardinality’ is applied when talking about the degree of a relationship between the entities.

A relation is normally subject to a set of business rules, which must be respected to keep data
complete and correct – these business rules are called cardinality

Business logic/rules drives the model, the model is simply one way of expressing business logic/rules

Maximum and minimum cardinality are used.

Firstly, the maximum cardinality between the entities must be determined.

Then add minimum cardinality

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

What are intersection entities?

A

An intersection entity is applied in the data model between the two entities involved in a many-to-many relationship.

In the intersection entity, the attributes only represent data that is referring to one occurrence of both entities. This is the case with the attribute ‘Quantity’. If the attributes are placed on the individual entity, they only concern occurrence of this entity.

Intersection identity should have unique identification

Composite key made for intersection – consists of the primary key of each of the entities involved

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

What are 6 practical guidelines for data modelling?

A
  1. Identify entities about which the system needs to store data (look for nouns).
  2. For each entity, the attributes must be listed.
  3. The data should be placed into logical groups.
  4. Identify a unique primary key for each entity.
  5. Eliminate redundant data, make sure that data is only stored in one place.
  6. Investigate the relationships between the entities.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the relation between process and data modelling?

A

Process modelling visualizes activities and their specific combination to be carried out to gain a specific goal or outcome. Whereas data modelling visualizes the structure and organization of the data needed in the business.

The process model can be used as inspiration for making the data model

When looking at the process modelled, the data needed for executing the process should be organized in the data model.

This is data needed to execute the process as well as data that arises during the execution of the process.

As a very general rule of thumb, entities to be modelled in the ERD may correspond to actors, chunks of data used or generated by (sub-) processes, or collections of these.

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

What is normalisation?

A

Data models can (and should) be “normalized” to a certain extent

Normalizing means to rid the data model of redundancies, false dependencies and logical errors

Up to 5 “normal forms” – in practice the normalization process often goes until 3rd normal form

E.g. Attribute Address is split into multiple columns (Street, House No, City, Postal code) or Name is spilt info First name and Last name

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

What is redundant data?

A

The data is never used by the system

The same data items (attributes) are stored in more than one place in the system (e.g. customer name or customer address)

Data in one place can be derived from data held in another place in the system (e.g. the total order price can be derived from the individual item prices and ordered quantities)

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