






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







๏ฌ 5.1 โ Functional Dependencies Between Attributes
โ Superkeys and Keys โ Inferring Functional Dependencies โ Determining Keys from Functional Dependencies ๏ฌ 5.2 โ Normal Forms
โ 1 st^ Normal Form โ 2 nd^ Normal Form โ 3 rd^ Normal Form โ Boyce Codd Normal Form
โ An attribute B is functionally dependent on an attribute A in a relational table if the value of A uniquely determines the value of B
โ We can also say that A determines B
โ Formal Definition of Functional Dependencies
ฮฑ โ R and ฮฒ โ R
The functional dependency
ฮฑ โ ฮฒ
is, t 1 [ฮฑ] = t 2 [ฮฑ] โ t 1 [ ฮฒ ] = t 2 [ ฮฒ ]
โ Inference process help us find functional dependencies in a relation, there are six rules:
โ Let W,X,Y, and Z be sets of functional dependencies and XY is the union of X and Y โ The first three are known as Armstrong's Axioms which was used to derive the later rules as well
โ Left side of a functional dependency is the determinant and the right side is known as the dependent
โ Formal Definition of the keys of a schema
Suppose S is a schema that is specified as a set of attributes A and a set of functional dependencies F. Let F +^ be the closure of the functional dependencies defined for S. A set of attributes X is a key of S if and only
schema, then X is a superkey
Functional Dependencies in Schemas
Employee: (EmpID, Name, Phone, Position)
โ Normalization is the process of transforming some objects into a structural form that satisfies some collection of rules
โ Used to reduce update anomalies and redundancy
โ A database schema is said to be in normal form if each of its relation schemas is in the normal form
subset of X
not in X or Y such that X โช Y {A}
part of both sides, that is, where X โฉ Y is not empty
โ The second normal form is designed to eliminate functional dependencies that have part of a key on the left side
โ It is in second normal form if no non-prime attributes are partially dependent on any key of the schema and it is in (1NF)
Not in Second Normal Form Employee: (Emp_ID, Course_Title, Name, Dept_Name, Salary, Date_Completed)
Not fully functionally dependent on the primary key
โ A schema is in third normal form if it has no transitive dependencies and it is in (2NF)
Must be dependent on the key this is not 3NF