4 Normalisation Flashcards

(10 cards)

1
Q

Can you describe any properties a relation must conform to?

A

They must have rows and columns

Each row describes a single entity of a replation. No duplication of rows are allowed

Each attribute is represented by a distinct column name

Each table must have a single attribute that can uniquely identify each row

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

Provide a defenition for full functional dependency…

A

when one attribute in a relation uniquely determines another attribute.

This can be written A -> B which would be the same as stating “B is functionally dependent upon A.”

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

Provide a defenition for full functional dependency…

A

The dependent attribute depends on all determinent attributes

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

What is a null value?

A

Means no data entry!/ Cant be used a s aprimary key.

Should be avoided as they are unknown attribute values.

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

In the Date-Codd notation. What is a constraint?

A

A constraint can be described as a “standard datatype”.

E.g: intger, string, date, true/false, float

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

State some key rinciples of Non Loss decomposition (Normalisation)…

A

Dont delete any attributes- Move them into new relations instead.

Must maintain relationships by preserving foreign keys

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

What is Non Loss decomposition (Normalisation)?

A

Stripping down a relation into its essential attributes

Usually results in more relations with fewer attributes

Aim for 3NF!

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

What is 1NF?

A

No repeating groups in a table

All non primary key attributes are functionally dependent on primary key

Must not contain duplicate rules

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

What is 2NF?

A

In 1NF & move everything that is not fully functional dependent into a seperate relation together with the determining key. Keep the origional relation less the removed dependent attributes

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

What is 3NF?

A

It is in 2NF - Check every non-primary key attribute depends only on the primary key

Search for issues wehere something is acting as the primary key!

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