Acknowledgement: Pratyush Kumar MCA-2nd Sem
Acknowledgement: Pratyush Kumar MCA-2nd Sem
PRATYUSH KUMAR
MCA- 2nd Sem
PROBLEM DEFINITION
STRONG ENTITIES:-
EMPLOYEE
PROJECT
TASK
SCHEMA REFINEMENT
AND
NORMALIZATION
SCHEMA
Relationship:-
EMPLOYEE
PROJECT
TASK
WORKS_ON
NORMALISATION
The Normalization process, as first proposed by Codd (1972), takes a relation schema through a series of tests
to certify a certain normal form. The process, which proceeds in top-down fashion by evaluating each relation
against the criteria for normal forms and decomposing relations as necessary, can thus be considered as
relational design by analysis.
Normalization of data can be considered a process of analyzing the given relation schemas based on
their FD’s and primary keys to achieve the desirable properties of:
Minimizing redundancy
Minimizing the insertion, deletion and update anomalies that could lead to loss of data
integrity.
Types of Anomalies:
The update anomaly occurs when the same data is stored in several records and a change has to be made. If
only some of the records are updated, an update erors occurs - eg we could end up recording two teachers as
giving the same class. If you are dealing with hundreds of records, this is quite likely to occur.
A deletion anomaly occurs not when you delete something by accident, but when deleting a record also
removes the only instance of some other data. So if we recorded a class's details along with a student's, have
only one student enrolled and then that student withdrew, we would be deleting the class info as well.
Normal Forms
Employee
Project
Pid Pname pgoal Bdate Pleader Preport Edate Pduration pextention
Task
Works_on
Tables:-
Logical Database Design: Table Definition
SQL QUERIES
L_NAME
--------
kapoor
tuteja
ENAME TYPE
------- --------
swati delhi
shilpi delhi
ENAME TYPE
------- --------
swati delhi
shilpi amritsar
PNAME PID
---------- ----------
SRMS 234
SMS1 278
SQL> delete from project where pname=’shilpi’;
1 row deleted