Lecture 6 Flashcards

1
Q

Data

A

Raw facts and figures without any deeper meaning

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

Information

A

Data shaped into meaningful form through context

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

Knowledge

A

Results from experience and education

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

What does a relational database do?

A

It organises data into one or more related tables

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

What does a unique key do?

A

It identifies each row, and can be used to link different tables.

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

Data redundancy

A

unnecessary repetiiton

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

Why should redundancy be reduced? (2)

A
  1. it increases the amount of storage required

2. It is a major source of data inconsistencies

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

What is one benefit of redundancy?

A

It can improve database performance since there is not needs for joint operations

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

What does database normalization do?

A

It manages the tradeoff between redundancy and performance (ease of use)

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

Requirements for 1NF?

A
  1. The domain of each attribute contains only atomic values

2. The values of each attribute contain only one value from that domain

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

Requirement for 2NF?

A
  1. Must satisfy 1NF
  2. In the case of a composite key, there are no partial dependencies. ie. non-key attributes are dependent on all key attributes and not just a subset
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Requirement for 3NF?

A
  1. Must satisfy 2NF
  2. There should be no transitive dependencies. Attributes should not be functionally dependent on other non-key attributes.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is Entity relationship modelling (ERM)?

A

describes the relationship between entities (things of interest)

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

Entity relationship diagrams are built on what four elemental concepts?

A
  1. Entities
  2. Attributes
  3. Relationships
  4. Cardinalities
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are entities?

A

They are things of interest to an organisation

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

What are attributes?

A

They describe the entity on question

17
Q

What are relationships?

A

They express that entities are linked together

18
Q

What are cardinalities?

A

They represent the number of occurrences within one entity that are associated with occurrences in another.

19
Q

What are the 3 types of cardinalities?

A
  1. One-to-one: exactly one occurrence in entity A is associated with exactly one occurrence in entity B
  2. One-to-many: Exactly one occurrence in entity A is associated with many occurrences in entity B
  3. Many-to-many: Many occurrences in entity A are associated with many occurrences in entity B
20
Q

What is optionality (lower cardinality) and upper cardinality?

A

The minimum amount of occurrences, and the maximum amount of occurences

21
Q

What is an entity set and a relationship set?

A

It contains all entities of a similar kind / all relationships of a similar kind.

22
Q

What are candidate keys and a primary key?

A

There are often multiple possible keys, and the one post suited as the main reference is the primary key. The primary key is chosen from all candidate keys

23
Q

3 steps or constructing a data model and what do they entail?

A
  1. Conceptual model: Identity all entities and relationships
  2. Logical model: Identify the attributes of all entities and determine keys
  3. Physical model: a database structure than can be implemented of a specific platform. All M:N relationships can been resolved through associative tables and normalisation has occurred.
24
Q

SQL: Data definition language (DDL) meaning?

A

creating, deleting, and altering, databases and tables (STRUCTURE). Important when working with ERD.

25
Q

SQL: Data manipulation language (DML) meaning?

A

retrieving, inserting, changing, deleting tuples/records (CONTENT)

26
Q

SQL: Data control language (DCL) meaning?

A

user and permission management (ACCESS)