













Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
These lecture slide are very easy to understand and very helpful to built a concept about the foundation of computers and Database Design.The key points in these slide are:Data Redundancy, Normal Forms, Functional Dependencies, Normalization, Insertion, Deletion, Database Normalization, Update Anomaly, Insertion Anomaly, Deletion Anomaly, Relation Schema, Multi-Valued Attributes
Typology: Slides
1 / 21
This page cannot be seen from the preview
Don't miss anything!














The same information can be expressed on multiple records; therefore updates to the table may result in logical inconsistencies. Example: each record in an "Employees' Skills" table might contain an Employee ID, Employee Address, and Skill; thus a change of address for a particular employee will potentially need to be applied to multiple records (one for each of his skills). If the update is not carried through successfully—if, that is, the employee's address is updated on some records but not others—then the table is left in an inconsistent state. Specifically, the table provides conflicting answers to the question of what this particular employee's address is. This phenomenon is known as an update anomaly.
An update anomaly. Employee 519 is shown as having different addresses on different records.
There are circumstances in which certain facts cannot be recorded at all. For example, each record in a "Faculty and Their Courses" table might contain a Faculty ID, Faculty Name, Faculty Hire Date, and Course Code—thus we can record the details of any faculty member who teaches at least one course, but we cannot record the details of a newly-hired faculty member who has not yet been assigned to teach any courses. This phenomenon is known as an insertion anomaly.
An insertion anomaly. Until the new faculty member is assigned to teach at least one course, his details cannot be recorded.
A relation schema is said to be in a particular normal
form if it satisfies certain prescribed criteria; otherwise the relation is said to violate the normal form. The violation of each of these normal forms signals the presence of a specific type of “undesirable” FD.
It is important to note that the normalization process is
anchored to the candidate key of a relation schema, R.
We will use the primary key as the basis for evaluating
and normalizing a relation schema.
348
As you can see this is schema violates the 1NF because there are multiple Artirst_nm associated with an Album_no or the domain of Artist_nm does not have atomic values. In fact by definition, ALBUM is not even a relation.
348
In order to fix ALBUM we must expand the relation so that there is a tuple for each (atomic) Artist_nm for a given Album_no. The primary key for this is { Album_no, Artist_nm } as we all should hopefully know by now.
2 nd^ NF
Example
Updating Jones Work location for Typing and Shorthand but not Whittling. Then asking “What is Jones current work location”, can cause a contradictory answer, because there are 2 different locations.
2 nd^ NF
Example
attribute is dependent on part of a key
Third Normal Form
Example
Eliminate Columns Not Dependent On Key
i.e. if a column is in a relation, then it must be
dependent on the key.
Third Normal Form
Example
Move non-key-dependent attributes to a
new table.
8.2 The Motivating Exemplar Revisited Normalization concepts have been presented by analyzing 1NF, 2NF 3NF and BCNF in isolation.
However in practice normal form violations rarely occur in isolation.
We can see from figure 8.8a that STOCK follows 1NF because there are not composite or multi-valued attributes in it.
Product} for candidate keys, however we choose {Store, Product} as a primary key.
Now that we have the primary key for STOCK we can see that:
fd1, fd2, fd3 and fd4 violates 2NF in STOCK fd6 violates 3NF in STOCK. fd7 violates BCNF in STOCK
To fix all of the violations above we must decompose the relational schema D:{R1 R2 R3 R4 R5}