SlideShare a Scribd company logo
1 of 8
1    Hammad Ahmad                               Govt. Gordon College Computer Department Rawalpindi




                      “CONVERSION TO 3RD nF AND ERD DESIGN OF

                       POINT OF SALE INFORMATION SYSTEM OF

                      PAKISTAN GROUP OF SUPER STORES (PGSS)”



    Presented by: -                                     Presented to: -

      HAMMAD AHMAD                                        Sir Farhad M. Riaz
      PGD-IT (35)                                         Lecturer
      hammadahmad29@yahoo.com                             Govt. Gordon College
      +92-312-500 22 47                                   Computer Section Rwp




                                                                                            st
                                                                                      Jan 31 2012
2      Hammad Ahmad                                                            Govt. Gordon College Computer Department Rawalpindi


                                   POINT OF SALE INFORMATION SYSTEM
                                           Conversion to 3rd nF


                                                                  Relation

                                                                                                                     Repeating Group




                                                                                                      I-Price/unit
                                                      C-Payment




                                                                                                                                         M-Address
                       C-Address




                                                                    C-Invoice




                                                                                                                             M-Name
            C-Name




                                                                                         I-Name
                                   C-DOP




                                                        Mode




                                                                                                                     M-ID
                                               C-QP
 C-ID




                                                                                I-ID
                                                                       No.
 101        Hammad     F-block     31Jan2012   02       Cash        00111       3333     Shampoo         300         98711   Pantene     Karachi
                        Rwp
            Hammad     F-block     01Feb2012   01       Cash        00542       3651     Perfume       1750          92410   Chestity    Karachi
                        Rwp
 102           Badar   Defense     03Feb2012   06      Credit       00875       3210      Cooking        750         95001      Dalda    Karachi
                         Lhr                                                              Oil 5kg
               Badar   Defense     04Feb2012   02      Home         00921       3001        Cold           70        98540   Cocacola         USA
                         Lhr                          Delivery                           drink 1Ltr



The above relation is not in 1st nF because it has repeating group as highlighted above. It is a repeating group
because             a           customer             can          purchase           different            items.
It has following anomalies:-

 Insertion anomaly
  In primary key column, there cannot be a null value. But if a customer purchases items on separate dates
  then the data cannot be entered.
 Deletion anomaly
  If the customer information is deleted then the item & manufacturer information is also deleted. So it
  can cause a lot of damage to the organization.
 Updating anomaly
  The item price and detail vary with the item no. so the whole rows and columns are to be updated with
  the change. Since there are also customer and manufacturer in the table so it is very difficult to update
  any of the categories.




                                                                                                                                                     st
                                                                                                                                        Jan 31 2012
3      Hammad Ahmad                                                         Govt. Gordon College Computer Department Rawalpindi

                                                                   1st nF

   The relation is converted in 1st nF by forming a composite key of C-ID and I-ID as shown below:-


                                            Composite Key




                                                                                                      I-Price/unit
                                                                   C-Payment




                                                                                                                                           M-Address
                                C-Address




                                                                               C-Invoice




                                                                                                                             M-Name
                     C-Name




                                                                                           I-Name
                                                       C-DOP




                                                                     Mode




                                                                                                                     M-ID
                                                C-QP
C-ID


          I-ID




                                                                                  No.
 101       3333      Hammad     F-block           02   31Jan2012     Cash       00111      Shampoo         300       98711   Pantene       Karachi
                                 Rwp
 101       3651      Hammad     F-block           01   01Feb2012     Cash       00542      Perfume       1750        92410   Chastity      Karachi
                                 Rwp
 102       3210         Badar   Defense           06   03Feb2012    Credit      00875       Cooking        750       95001      Dalda      Karachi
                                  Lhr                                                       Oil 5kg
 102       3001         Badar   Defense           02   04Feb2012    Home        00921        Cold             70     98540   CocaCola           USA
                                  Lhr                              Delivery                  drink
                                                                                              1Ltr




But the above relation is not in 2nd nF because of the partial dependency of the non-key attributes as shown
with highlighted arrows above. These partial dependent attributes are as follows:-

   I-ID                 I-Name, I-Price /unit, M-ID, M-Name, M-Address.
   C-ID                 C-Name, C-Address, C-QP, C-DOP, C-Payment Mode.

   It has following anomalies:-

    Insertion anomaly
     If a new item is introduced or a customer wants to register himself then the data can’t be entered
     without C-ID & I-ID respectively.
    Deletion anomaly
     If a customer or item information is deleted then the whole information customer, item and
     manufacturer will be deleted.
    Updating anomaly
     It is very difficult to update the information. If there is any change in the data then the whole rows and
     columns are to be updated.




                                                                                                                                           st
                                                                                                                                      Jan 31 2012
4    Hammad Ahmad                                                                Govt. Gordon College Computer Department Rawalpindi

                                                                   2nd nF

The 1st nF relation is converted in 2nd nF by normalizing it into C-ID & I-ID entities. It is normalized as
follows:-



                                                                                          Transitive Dependency


 Customer




                                                                                                                C-Payment
                                      C-Address




                                                                                                                                C-Invoice
                  C-Name




                                                                                C-DOP




                                                                                                                  Mode
                                                           C-QP
C-ID




                                                                                                                                   No.
        101                Hammad         F-block Rwp             02                    31Jan2012                      Cash           00111
        101                Hammad         F-block Rwp             01                    01Feb2012                      Cash           00542
        102                 Badar         Defense Lhr             06                    03Feb2012                     Credit          00875
        102                 Badar          Defense Lhr            02                    04Feb2012               Home Delivery         00921




 Item
                                                                                              M-Address
                                    Price/unit




                                                                       M-Name
                  I-Name




                                                    M-ID
 I-ID




                                        I-




        3333        Shampoo                300           98711              Pantene                  Karachi
        3651         Perfume              1750           92410              Chastity                 Karachi
        3210       Cooking Oil             750           95001               Dalda                   Karachi
                       5kg
        3001      Cold drink 1Ltr             70         98540             CocaCola                       USA




                                                                  Transitive Dependency




                                                                                                                                                 st
                                                                                                                                            Jan 31 2012
5   Hammad Ahmad                                            Govt. Gordon College Computer Department Rawalpindi



The above entities are not in 3rd nF because of the transitive dependency of non-key attributes. The
transitive dependent non-key attributes are as follows:-


                    C-QP
                                                                             M-ID


                              C-Payment
         C-DOP
                                Mode
                                              AND
                                                                                      M-
                                                                  M-Name
                  C-Invoice
                                                                                    Address
                     No.




It has following anomalies:-



 Insertion anomaly
  If an unregistered customer purchases some items then his information cannot be entered. On the other
  hand a new manufacturer’s information cannot be entered without item id.
 Deletion anomaly
  By deleting customer information or item information the invoice information and manufacturer’s
  information is also deleted.
 Updating anomaly
  Still it is very difficult to update the information. If there is any change in the data then the whole rows
  and columns are to be updated.




                                                                                                             st
                                                                                                       Jan 31 2012
6     Hammad Ahmad                                                         Govt. Gordon College Computer Department Rawalpindi




                                                                          3rd nF

The 2nd nF relation is converted into 3rd nF by further normalizing the customer and item entities. They are
normalized as follows:-


 Customer                                                                                                Foreign Key




                                                         Address
                               C-Name




                                                                                   Invoice
C-ID




                                                                                     No.
                                                           C-




                                                                                      C-
                101                     Hammad                F-block Rwp               00111
                101                     Hammad                F-block Rwp               00542
                102                      Badar                Defense Lhr               00875
                102                      Badar                Defense Lhr               00921




 Invoice No.
C-Invoice




                                                                                   Payment
                                                 C-DOP




                                                                                    Mode
                               C-QP
   No.




                                                                                      C-




       00111                            02                  31Jan2012                     Cash
       00542                            01                  01Feb2012                     Cash
       00875                            06                  03Feb2012                    Credit
       00921                            02                  04Feb2012                 Home Delivery




 Item                                                                                          Foreign Key
                                             Price/u
                      I-Name




                                                               M-ID
I-ID




                                               nit
                                                I-




       3333              Shampoo                 300                  98711
       3651               Perfume                1750                 92410
       3210            Cooking Oil 5kg           750                  95001
       3001            Cold drink 1Ltr            70                  98540




                                                                                                                                   st
                                                                                                                             Jan 31 2012
7    Hammad Ahmad                                      Govt. Gordon College Computer Department Rawalpindi




 Manufacturer


                       M-Name




                                           Address
 M-ID




                                             M-
            98711               Pantene              Karachi
            92410               Chastity             Karachi
            95001                Dalda               Karachi
            98540               CocaCola              USA




 Customer-Item (C-I Gerund)
 C-ID




                         I-ID




             101                 3333
             101                 3651
             102                 3210
             102                 3001




Now the relation is in 3rd nF. The anomalies are reduced to maximum extent. Now each entity has its own
record. Since “The Prestigious Group of Super Stores” has four other branches in Pakistan, so the above
entities have a homogenous distributed system spread over Pakistan.




                                                                                                           st
                                                                                                     Jan 31 2012
8   Hammad Ahmad                     Govt. Gordon College Computer Department Rawalpindi




                        ERD DESIGN




                          ITEM




         MANUFACTURER
                                                      C-I




                         CUSTOMER




           INVOICE
             NO.




                                                                                 st
                                                                           Jan 31 2012

More Related Content

Recently uploaded

How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 

Recently uploaded (20)

How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Conversion To 3nF

  • 1. 1 Hammad Ahmad Govt. Gordon College Computer Department Rawalpindi “CONVERSION TO 3RD nF AND ERD DESIGN OF POINT OF SALE INFORMATION SYSTEM OF PAKISTAN GROUP OF SUPER STORES (PGSS)” Presented by: - Presented to: - HAMMAD AHMAD Sir Farhad M. Riaz PGD-IT (35) Lecturer hammadahmad29@yahoo.com Govt. Gordon College +92-312-500 22 47 Computer Section Rwp st Jan 31 2012
  • 2. 2 Hammad Ahmad Govt. Gordon College Computer Department Rawalpindi POINT OF SALE INFORMATION SYSTEM Conversion to 3rd nF Relation Repeating Group I-Price/unit C-Payment M-Address C-Address C-Invoice M-Name C-Name I-Name C-DOP Mode M-ID C-QP C-ID I-ID No. 101 Hammad F-block 31Jan2012 02 Cash 00111 3333 Shampoo 300 98711 Pantene Karachi Rwp Hammad F-block 01Feb2012 01 Cash 00542 3651 Perfume 1750 92410 Chestity Karachi Rwp 102 Badar Defense 03Feb2012 06 Credit 00875 3210 Cooking 750 95001 Dalda Karachi Lhr Oil 5kg Badar Defense 04Feb2012 02 Home 00921 3001 Cold 70 98540 Cocacola USA Lhr Delivery drink 1Ltr The above relation is not in 1st nF because it has repeating group as highlighted above. It is a repeating group because a customer can purchase different items. It has following anomalies:-  Insertion anomaly In primary key column, there cannot be a null value. But if a customer purchases items on separate dates then the data cannot be entered.  Deletion anomaly If the customer information is deleted then the item & manufacturer information is also deleted. So it can cause a lot of damage to the organization.  Updating anomaly The item price and detail vary with the item no. so the whole rows and columns are to be updated with the change. Since there are also customer and manufacturer in the table so it is very difficult to update any of the categories. st Jan 31 2012
  • 3. 3 Hammad Ahmad Govt. Gordon College Computer Department Rawalpindi 1st nF The relation is converted in 1st nF by forming a composite key of C-ID and I-ID as shown below:- Composite Key I-Price/unit C-Payment M-Address C-Address C-Invoice M-Name C-Name I-Name C-DOP Mode M-ID C-QP C-ID I-ID No. 101 3333 Hammad F-block 02 31Jan2012 Cash 00111 Shampoo 300 98711 Pantene Karachi Rwp 101 3651 Hammad F-block 01 01Feb2012 Cash 00542 Perfume 1750 92410 Chastity Karachi Rwp 102 3210 Badar Defense 06 03Feb2012 Credit 00875 Cooking 750 95001 Dalda Karachi Lhr Oil 5kg 102 3001 Badar Defense 02 04Feb2012 Home 00921 Cold 70 98540 CocaCola USA Lhr Delivery drink 1Ltr But the above relation is not in 2nd nF because of the partial dependency of the non-key attributes as shown with highlighted arrows above. These partial dependent attributes are as follows:- I-ID I-Name, I-Price /unit, M-ID, M-Name, M-Address. C-ID C-Name, C-Address, C-QP, C-DOP, C-Payment Mode. It has following anomalies:-  Insertion anomaly If a new item is introduced or a customer wants to register himself then the data can’t be entered without C-ID & I-ID respectively.  Deletion anomaly If a customer or item information is deleted then the whole information customer, item and manufacturer will be deleted.  Updating anomaly It is very difficult to update the information. If there is any change in the data then the whole rows and columns are to be updated. st Jan 31 2012
  • 4. 4 Hammad Ahmad Govt. Gordon College Computer Department Rawalpindi 2nd nF The 1st nF relation is converted in 2nd nF by normalizing it into C-ID & I-ID entities. It is normalized as follows:- Transitive Dependency  Customer C-Payment C-Address C-Invoice C-Name C-DOP Mode C-QP C-ID No. 101 Hammad F-block Rwp 02 31Jan2012 Cash 00111 101 Hammad F-block Rwp 01 01Feb2012 Cash 00542 102 Badar Defense Lhr 06 03Feb2012 Credit 00875 102 Badar Defense Lhr 02 04Feb2012 Home Delivery 00921  Item M-Address Price/unit M-Name I-Name M-ID I-ID I- 3333 Shampoo 300 98711 Pantene Karachi 3651 Perfume 1750 92410 Chastity Karachi 3210 Cooking Oil 750 95001 Dalda Karachi 5kg 3001 Cold drink 1Ltr 70 98540 CocaCola USA Transitive Dependency st Jan 31 2012
  • 5. 5 Hammad Ahmad Govt. Gordon College Computer Department Rawalpindi The above entities are not in 3rd nF because of the transitive dependency of non-key attributes. The transitive dependent non-key attributes are as follows:- C-QP M-ID C-Payment C-DOP Mode AND M- M-Name C-Invoice Address No. It has following anomalies:-  Insertion anomaly If an unregistered customer purchases some items then his information cannot be entered. On the other hand a new manufacturer’s information cannot be entered without item id.  Deletion anomaly By deleting customer information or item information the invoice information and manufacturer’s information is also deleted.  Updating anomaly Still it is very difficult to update the information. If there is any change in the data then the whole rows and columns are to be updated. st Jan 31 2012
  • 6. 6 Hammad Ahmad Govt. Gordon College Computer Department Rawalpindi 3rd nF The 2nd nF relation is converted into 3rd nF by further normalizing the customer and item entities. They are normalized as follows:-  Customer Foreign Key Address C-Name Invoice C-ID No. C- C- 101 Hammad F-block Rwp 00111 101 Hammad F-block Rwp 00542 102 Badar Defense Lhr 00875 102 Badar Defense Lhr 00921  Invoice No. C-Invoice Payment C-DOP Mode C-QP No. C- 00111 02 31Jan2012 Cash 00542 01 01Feb2012 Cash 00875 06 03Feb2012 Credit 00921 02 04Feb2012 Home Delivery  Item Foreign Key Price/u I-Name M-ID I-ID nit I- 3333 Shampoo 300 98711 3651 Perfume 1750 92410 3210 Cooking Oil 5kg 750 95001 3001 Cold drink 1Ltr 70 98540 st Jan 31 2012
  • 7. 7 Hammad Ahmad Govt. Gordon College Computer Department Rawalpindi  Manufacturer M-Name Address M-ID M- 98711 Pantene Karachi 92410 Chastity Karachi 95001 Dalda Karachi 98540 CocaCola USA  Customer-Item (C-I Gerund) C-ID I-ID 101 3333 101 3651 102 3210 102 3001 Now the relation is in 3rd nF. The anomalies are reduced to maximum extent. Now each entity has its own record. Since “The Prestigious Group of Super Stores” has four other branches in Pakistan, so the above entities have a homogenous distributed system spread over Pakistan. st Jan 31 2012
  • 8. 8 Hammad Ahmad Govt. Gordon College Computer Department Rawalpindi ERD DESIGN ITEM MANUFACTURER C-I CUSTOMER INVOICE NO. st Jan 31 2012