Employee Management System
Employee Management System
System
Submitted by :👇
Submmited to:
Debjani Das
prof. Priyanka Tripathi
Himmanshu
Rishikesh
Anand patidar
Tejram Borana
Priyanshu
Sachin Singh
Normalization
Example: Suppose a company wants to store the names and contact details of its
employees. It creates a table that looks like this:
Emp_id Emp_name Emp_address Emp_mobile
101 Aman Indore 8912312390
102 Ankit Bilaspur 8812121212
103 Pankaj Raipur 9900012222
104 Kamal Bhopal 7778881212
105 Suraj Panipat 8123450987
Two employees (Jon & Lester) are having two mobile numbers so the
company stored them in the same field as you can see in the table
above.
This table is not in 1NF as the rule says “each attribute of a table must
have atomic (single) values”, the emp_mobile values for employees Jon
& Lester violates that rule.
To make the table complies with 1NF we should have the data like this:
Emp_id Emp_name Emp_address Emp_mobile
Emp_id Emp_dept
1001 Hardware
1001 Stores
1002 Technical suport
1002 production
Functional dependencies:
emp_id -> emp_nationality
emp_dept -> {dept_type, dept_no_of_emp}
Candidate keys:
For first table: emp_id
For second table: emp_dept
For third table: {emp_id, emp_dept}
Thank You