ADVANCE DATABASE NORMALIZATION Flashcards
A database design technique that organizes tables in a manner that reduces redundancy and dependency of data
Normalization
divides larger tables into smaller tables and links them using relationships
Normalization
This rule is all about disallowing multivalued attributes
Eliminate Repeating Data
refers to situations where the primary key for a table is a composite primary key, which means ‘a key composed of multiple columns’
Eliminate Partial Dependencies
a column in the table refers to a non-key column instead of referring to the primary key of a table
Eliminate Transitive Dependencies
Problems that can occur in poorly planned, unnormalized databases where all the data is stored in one table (a flat- file database)
Anomaly
must include only atomic values and that the value of any attribute in a row must be a single value from the domain of that attribute
First Normal Forms (1NF)
- Each attribute name must be unique
- Each attribute value must be single
- Each row must be unique
Rules of 1NF
What is ACID?
ACID (atomicity, consistency, isolation, and durability)
a relation is in 2NF, if it satisfies the following conditions:
E.F. Codd
- The table should be in the First Normal Form
- There should be no Partial Dependency
Second Normal Form (2NF)
The attributes which are used to form a candidate key are called l
Prime Attributes
The attributes which do not form a candidate key are called
Non-Prime Attributes
A concept that specifies the relationship between two sets of attributes where one attribute determines the value of another attribute
Functional Dependency
- A specific type of dependency that happens in tables with a composite primary key (a primary key made up of two or more columns).
- a non-prime attribute can be determined by the part of the candidate key in a relation, it is known as a partial dependency
Partial Dependency