Normalisation Flashcards

1
Q

partial dependency

A

occurs when a non-key attribute is functionally dependent on, or determined by, a single attribute that is part of a composite primary key. Requires composite primary key.

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

transitive dependecy

A

occurs when a non-key attribute determines another non-key attribute but it can be skipped over because the primary key already uniquely identifies that specific attribute.

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

1NF

A

First Normal Form. Describes the state of a database where all tables are free from repeating groups

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

repeating groups

A

cells in the table are left blank because they would be repeats of the line above it. Only the cells in those columns which have values that differ from the row above are filled in. Multiple entries of the same type existing for any single key attribute occurrence.

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

2NF

A

Second Normal Form. Occurs only when 1NF contains composite primary keys. Achieved when all tables are in 1NF and partial dependencies are removed.

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

3NF

A

Third Normal Form. Achieved when all tables are in 2NF and transitive dependencies are also removed.

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

BCNF

A

Boyce Codd Normal Form. This normal form is a special type of 3NF which occurs only when the tables have determinants with more than one candidate key. A table is already in BCNF if it is in 3NF and there are no determinants of key attributes that are non-key attributes.

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

4NF

A

Fourth Normal Form. Achieved when all multivalued-dependencies are removed. Useful for taking information from spreadsheets and creating a database since a spreadsheet is likely to have multivalued dependencies in it.

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

conversion to 1NF

A
  1. Eliminate repeating groups
    put data in table
    each cell should have single value
    each entity occurrence should have a value for every attribute unless nulls allowed
  2. Identify the primary key
    must u n i q u e l y identify every row
  3. Identify all dependencies
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

conversion to 2NF

A
  1. Make new table for every primary key attribute in a composite key to eliminate partial dependency. Keep all key-attributes in original table.
  2. Reassign corresponding attributes to a new table based on which key-attribute they were dependent on.
  3. Name the tables appropriately
  4. Make the determinants foreign keys in the original table.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

conversion to 3NF

A
  1. Repeat process of 2NF but for transitive dependencies. For every transitive dependency create a new table with the determinant as the primary key in the new table and a foreign key in the original table.
  2. Remove dependent attributes from the original table
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

conversion to BCNF

A

Make determinant of prime attribute part of the primary key. Remove dependent from primary key. Leads to partial dependency. Remove partial dependency by normalising to 3NF.

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

conversion to 4NF

A

Multivalued dependency is eliminated through the creation of new tables for the components of the multivalued dependency.

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

advantages of normalisation

A

Reduced redundancy leads to fewer anomalies and information is therefore more accurate and reliable.

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

disadvantages of normalisation

A

Normalisation compromises processing speed to eliminate data redundancy and anomalies. Only necessary if the manner in which the data is likely to be manipulated/queried requires the separation. All choices to normalise are a trade-off between the needs of processing speed and reduced redundancy.

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

denormalisation

A

Process of amalgamating data into fewer tables to increase speed for the end user at the expense of increased data redundancy.

17
Q

multi-valued dependency

A

occurs when one key determines multiple values of two other attributes and those attributes are independent of each other.

18
Q

two rules that reduce the likelihood of multi-value dependency occurrence:

A
  1. all attributes must be dependent on the primary key, but they must be independent of each other; and 2. no row may contain more than two or more multi-valued facts about an entity