Chapter 5-Normalization Flashcards
Functional Dependency
A relationship between 2 attributes indicating that for each unique attribute A, there is only 1 value of attribute B.
Attribute A - c_id (Attribute A is only associated with one customer name. )
Determinant
An attribute or group of attributes on which another attribute is functionally dependent.
C_id-> C_name
Customer ID determines Customer Name
Partial functional dependency
B is functionally dependent on A and an attribute can be removed from A and the dependency still exists
Transitive dependency
In a functional dependency if B is functionally dependent on A and C is functionally dependent on B, C is then said to be transitively dependent on A
BCNF stands for what
Boyce Codd Normal Form
What are the three advantages of using views
- Being able to hide certain parts of the database from users makes it more secure.
- Views permit customized data access.
- Views are stored as named database operations so they can be used to keep frequently used or complex data operations ready.
Denormalization
The process of rejoining relations that were decomposed during the normalization process to improve performance mainly during query
Violation of BCNF criteria occurs if
Relations that have two or more composite candidate keys.
DCL stands for what and is used for what purpose.
Data control language is used to control access to the database and to control access to the data with in it such as GRANT or REVOKE privileges.
The key to moving 2NF relations into 3NF is…
Removing any transitive dependencies that may exist in the relations.
A relation is in 3NF if it is in 2NF and…
No attributes that are not part of the primary key are transitively dependent on the primary key.
Atomic value
And attributes value that cannot be divided into multiple pieces of information.
A relation is said to be in 2NF If the relation is in 1NF and…
All attributes that are not part of the primary key are completely functionally dependent on the primary key.
A relation is in 1NF if…
The data is held in a two-dimensional table with each attribute represented by anatomic value.
Decomposition
The process of creating new relations from existing relations based on functional dependencies within the original relation.