Lecture 3 Flashcards

(11 cards)

1
Q

What is normalization

A

 method to control redundancy in data stored and used
Ensures information quality and prevents errors and inconsistencies
 Progressive decomposition of data sets into smaller, structured entities (tables). Well organised entities should respect at least 3NF

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

What is 1NF how do you choose it

A
  1. Entity must have at least one key
  2. All attributes must be atomic (single values only).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a key

A

one or more attributes that uniquely identity each row
Value is mandatory and must be unique

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

How to choose primary key

A

Shortest, stable, controlled

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

What does atomic mean

A

only one value per attribute in each record

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

What is 2NF

A
  1. Must be already in 1NF
  2. Every non-key attribute depends on the entire key not just part of it
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is 3NF

A
  1. Already in 2NF
  2. All non-key attributes depend directly on the key, no other attribute
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the conceptual model and its attributes

A

 identifies and organizes data an org. needs to function
 structures data into entities
Each entity includes attributes
Associations (lines) show the relationship between entities
The blue verb explains relationship direction
Cardinalities (symbols) show how many instances of one entity can be linked to instances of another

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

What is the logical model

A

Bridge between normalization and conceptual model
Shows relationship between entities using keys

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

What is the foreign key

A

ensures consistency by pointing to a valid PK in another table

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

Logical model vs Conceptual model

A

The conceptual data model is the business view: it names the main things (entities) and how they relate, in plain language, with cardinalities/rules—no tables or keys yet. Ex.: Customer —places→ Order —contains→ Product.
The logical data model turns that into an implementable structure: entities become tables, relationships become FKs, M:N are resolved with join tables, and attributes + keys are specified.

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