3. There is a shoe manufacturing store, who deals with different
dealers and customers. So we make a database detailed design that
involves a process from manufacturing of shoe to the customer
hand.
Scenario
5. Zain 0315-4495944 Male 32street,Lahore Islam Brown_Leather zain.waseem.zw@gmail.com 100,0000 Brown_Leather InProcess 0
Zain 0315-4495944 Male 32street,Lahore Islam White_Leather zain.waseem.zw@gmail.com 100,0000 White_Leather Manufactured 10,000
Hamza 0305-9987654 Male 12street,Peshawar Islam Parie_Cardin hamzayasin@hotmail.com 20,000 Black_Leather InProcess 0
Hamza 0305-9987654 Male 12street,Peshawar Islam Black_Leather hamzayasin@hotmail.com 20,000 Parie_Cardin InProcess 0
Syrus 0311-3123422 Male 06street,Kashmir Christian Farin_Joel Syrus.isaam@techno.com 15,000 Farin_Joel Manufactured 30,000
Syrus 0311-3123422 Male 06street,Kashmir Christian Farin_Pearl Syrus.isaam@techno.com 15,000 Farin_Pearl Manufactured 50,000
Anjam 0331-1323233 Female 11street,Rawalpindi Hindu Ava anjam.mark@techno.com 35,000 Abva InProcess 0
Shariq 0315-8765432 Male 42street,Gujrat Islam Bava shariqansari@yahoo.com 55,000 Bava Manufactured 50,000
Daniel 0321-1323214 Male 09street,Karachi Islam Festival_Shoes daniyalsaeed@techno.com 85,000 Festival_Shoes InProcess 0
Sania 0333-1232342 Female 07street,Faislabad Islam DJ_Shine Sania.sanam@gmail.com 75,000 Dj_Shine Manufactured 45,000
Sania 0333-1232342 Female 07street,Faislabad Islam Joan_Brown Sania.sanam@gmail.com 75,000 Joan_Brown Manufactured 50,000
Daniel 0321-1323214 Male 09street,Karachi Islam War_Zone daniyalsaeed@techno.com 85,000 Laze_Round Manufactured 70,000
War_Zone InProcess 0
Raw Data
At very first we thought what should be involved in our data. After thinking we made a rough table
content which is based on different bulky Information like; Name, address, religion, shoe type,
gender, price, salary, Location and etc. The information or data we have been collected was not in a
manner way. So we apply 1st normalization form on our collected raw data.
7. 1st Normalization
In our first normalization form our raw data was going to be clear, we clearly found 4
entities in our first normal form and these entities were: Employee Information,
Manufacturing Details, Dealer Information and customer’s details vice versa. But still we
were confused in our data, because it’s still unclear for database understanding, we were
not clear that what these rows and columns are actually representing. So we decided to do
2nd normalization form so that may be our data comes out clearly.
Employee Manufacturing
Zain 0315-4495944 Male 32street,Lahore Islam Brown_Leather zain.waseem.zw@gmail.com 100,0000 Brown_Leather InProcess 500
Zain 0315-4495944 Male 32street,Lahore Islam White_Leather zain.waseem.zw@gmail.com 100,0000 White_Leather Manufactured 10,000
Hamza 0305-9987654 Male 12street,Peshawar Islam Parie_Cardin hamzayasin@hotmail.com 20,000 Black_Leather InProcess 250
Hamza 0305-9987654 Male 12street,Peshawar Islam Black_Leather hamzayasin@hotmail.com 20,000 Parie_Cardin InProcess 300
Syrus 0311-3123422 Male 06street,Kashmir Christian Farin_Joel Syrus.isaam@techno.com 15,000 Farin_Joel Manufactured 30,000
Syrus 0311-3123422 Male 06street,Kashmir Christian Farin_Pearl Syrus.isaam@techno.com 15,000 Farin_Pearl Manufactured 50,000
Anjam 0331-1323233 Female 11street,Rawalpindi Hindu Ava anjam.mark@techno.com 35,000 Abva InProcess 100
Shariq 0315-8765432 Male 42street,Gujrat Islam Bava shariqansari@yahoo.com 55,000 Bava Manufactured 50,000
Daniel 0321-1323214 Male 09street,Karachi Islam Festival_Shoes daniyalsaeed@techno.com 85,000 Festival_Shoes InProcess 45
Sania 0333-1232342 Female 07street,Faislabad Islam DJ_Shine Sania.sanam@gmail.com 75,000 Dj_Shine Manufactured 45,000
Sania 0333-1232342 Female 07street,Faislabad Islam Joan_Brown Sania.sanam@gmail.com 75,000 Joan_Brown Manufactured 50,000
Daniel 0321-1323214 Male 09street,Karachi Islam War_Zone daniyalsaeed@techno.com 85,000 Laze_Round Manufactured 70,000
War_Zone InProcess 2000
9. 2nd Normalization
In the 2nd normal form it’s been clear that what are the attributes of the tables that we’ve
been clarify before in our 1st normal form. We named those attributes in their respective
tables and force our brain to think deep and to find more valuable stuff from this messing
information. And our data was in cubic form that creates turmoil. So this thing gives us
sock to do 3rd normal form.
Employee Manufacturing
Name Phone Sex Address Region Area_of_Work E-mail Salary Product Status Qty
Zain 0315-4495944 Male 32street,Lahore Islam Brown_Leather zain.waseem.zw@gmail.com 100,0000 Brown_Leather InProcess 500
Zain 0315-4495944 Male 32street,Lahore Islam White_Leather zain.waseem.zw@gmail.com 100,0000 White_Leather Manufactured 10,000
Hamza 0305-9987654 Male 12street,Peshawar Islam Parie_Cardin hamzayasin@hotmail.com 20,000 Black_Leather InProcess 250
Hamza 0305-9987654 Male 12street,Peshawar Islam Black_Leather hamzayasin@hotmail.com 20,000 Parie_Cardin InProcess 300
Syrus 0311-3123422 Male 06street,Kashmir Christian Farin_Joel Syrus.isaam@techno.com 15,000 Farin_Joel Manufactured 30,000
Syrus 0311-3123422 Male 06street,Kashmir Christian Farin_Pearl Syrus.isaam@techno.com 15,000 Farin_Pearl Manufactured 50,000
Anjam 0331-1323233 Female 11street,Rawalpindi Hindu Ava anjam.mark@techno.com 35,000 Abva InProcess 100
Shariq 0315-8765432 Male 42street,Gujrat Islam Bava shariqansari@yahoo.com 55,000 Bava Manufactured 50,000
Daniel 0321-1323214 Male 09street,Karachi Islam Festival_Shoes daniyalsaeed@techno.com 85,000 Festival_Shoes InProcess 45
Sania 0333-1232342 Female 07street,Faislabad Islam DJ_Shine Sania.sanam@gmail.com 75,000 Dj_Shine Manufactured 45,000
Sania 0333-1232342 Female 07street,Faislabad Islam Joan_Brown Sania.sanam@gmail.com 75,000 Joan_Brown Manufactured 50,000
Daniel 0321-1323214 Male 09street,Karachi Islam War_Zone daniyalsaeed@techno.com 85,000 Laze_Round Manufactured 70,000
War_Zone InProcess 2000
11. 3rd Normalization
In the 3rd Normalization form we break our cubic data into colonial type and made easy to
access. As we were having data redundancy in our previous normal form so we add new
columns with our four entities and assigned them numbers. e.g. staff#, serial#, dealer#,
customer# respectively. This Action stops a bit amount of data redundancy but still the
solution was not found. So this bulky data force us to think more on our scenario.
Staff# Name Phone Sex Address Region Area_of_Work E-mail Salary
7 Zain 0315-4495944 Male 32street,Lahore Islam Brown_Leather, White_Leather zain.waseem.zw@gmail.com 100,0000
8 Shariq 0315-8765432 Male 42street,Gujrat Islam Bava shariqansari@yahoo.com 150,0000
9 Hamza 0305-9987654 Male 12street,Peshawar Islam Parie_Cardin, Black_Leather hamzayasin@hotmail.com 50,000
0 Daniel 0321-1323214 Male 09street,Karachi Islam Festival_Shoes, War_Zone daniyalsaeed@techno.com 90,000
1 Sania 0333-1232342 Female 07street,Faislabad Islam DJ_Shine, Joan_Brown Sania.sanam@gmail.com 45,000
2 Syrus 0311-3123422 Male 06street,Kashmir Christian Farin_Joel, Farin_Pearl Syrus.isaam@techno.com 35,000
3 Anjam 0331-1323233 Female 11street,Rawalpindi Hindu Ava anjam.mark@techno.com 25,000
Employee
14. 4th Normalization
In the 4th Normal form dealer# and serial# was not suiting on the tables so we just assign
dealer code to the entity named as dealer, and product code to the entity named as
Manufacturing. But still we are thinking that these just four entities are not enough to
fulfill our requirements. So we decided to do 5th normal form.
Staff # Name Phone Sex Appoint Date Address Region Area_of_Work E-mail Salary
7 Zain 0315-4495944 Male 11-11-2012 32street,Lahore Islam BL1,WL2 zain.waseem.zw@gmail.com 100,0000
8 Shariq 0315-8765432 Male 11-03-2000 42street,Gujrat Islam BA8 shariqansari@yahoo.com 150,0000
9 Hamza 0305-9987654 Male 24-01-2008 12street,Peshawar Islam PC4,BL3 hamzayasin@hotmail.com 50,000
0 Daniel 0321-1323214 Male 31-04-2005 09street,Karachi Islam FS9,WZ13 daniyalsaeed@techno.com 90,000
1 Sania 0333-1232342 Female 06-07-2002 07street,Faislabad Islam DS10,JB11 Sania.sanam@gmail.com 45,000
2 Syrus 0311-3123422 Male 15-07-2009 06street,Kashmir Christian FJ5,FP6 Syrus.isaam@techno.com 35,000
3 Anjam 0331-1323233 Female 03-09-2006 11street,Rawalpindi Hindu AA7 anjam.mark@techno.com 25,000
Employee
17. 5th Normalization
Those four entities on which we were working before 4 normalizations were not enough to
fulfill our requirements and making troubles to understand the scenario. Now in the 5th
Normal form we create 3 more entities from these old 4 entities through breaking them
twice. Firstly we assigned a code to the employee’s table and then broke manufacturing
table into manufacturing and stock. Else we also broke dealer’s table into dealers and dealer
details. And at the end we also broke our Customer’s table into customers and customer
details. Because of large amount of data the relation between entities were still not clear. So
this thing again force us to do more work on this process of normalization and we did 6th
normalization form.
Staff Code Name Phone Sex Appoint Date Address Region Area_of_Work E-mail Salary
SM20127 Zain 0315-4495944 Male 11-11-2012 32street,Lahore Islam BL1,WL2 zain.waseem.zw@gmail.com 100,0000
DR20008 Shariq 0315-8765432 Male 11-03-2000 42street,Gujrat Islam BA8 shariqansari@yahoo.com 150,0000
GD20089 Hamza 0305-9987654 Male 24-01-2008 12street,Peshawar Islam PC4,BL3 hamzayasin@hotmail.com 50,000
PR20050 Daniel 0321-1323214 Male 31-04-2005 09street,Karachi Islam FS9,WZ13 daniyalsaeed@techno.com 90,000
MO20021 Sania 0333-1232342 Female 06-07-2002 07street,Faislabad Islam DS10,JB11 Sania.sanam@gmail.com 45,000
HH20092 Syrus 0311-3123422 Male 15-07-2009 06street,Kashmir Christian FJ5,FP6 Syrus.isaam@techno.com 35,000
MS20063 Anjam 0331-1323233 Female 03-09-2006 11street,Rawalpindi Hindu AA7 anjam.mark@techno.com 25,000
Employee
20. 6th Normalization
Breakdown of tables were still continue even in the 6th normal form. We broke the entity
employee into three more entities; Employee, Employee Details and Employee area of work.
At the same time we broke our table named as customer details into Invoice and Invoice
details and assigned them their respective primary and foreign key’s. Now our design is
coming in the understood form. But still there were some hurdles we were facing some many
to many relationships so we need them to break as well. So this thing socks us to perform final
and normalized form and we performed 7th Normal form to fulfill or requirements.
Staff Code
(P.K)
Name Sex
SM20127 Zain Male
DR20008 Shariq Male
GD20089 Hamza Male
PR20050 Daniel Male
MO20021 Sania Female
HH20092 Syrus Male
MS20063 Anjam Female
Employee
25. 7th Normalization
At the start of 7th normal form we were assured that we just need to break many to many
relationships and we create different tables like; Bridge S_to_D (S for Stock & D for Dealers)
and Bridge D_to_C (D for Dealer & C for Customer).
And we also broke manufacturing table into manufacturing and raw material and we
assigned primary and foreign keys to all entities to clarify their relations. Now our Effort to
normalize the scenario and the bulky or messing data is finally proved fruitful
Staff Code
(P.K)
Name Sex
SM20127 Zain Male
DR20008 Shariq Male
GD20089 Hamza Male
PR20050 Daniel Male
MO20021 Sania Female
HH20092 Syrus Male
MS20063 Anjam Female
Employee