SlideShare una empresa de Scribd logo
1 de 10
Descargar para leer sin conexión
Database Design                                                                                                                 1



                                                            ก       ก          F
                                                                (Database Design)

 F         F
               F                F              F                              F                F F
      01                              0005              F                F        2000         219.63   Yes               409
                                      0100                 F                                   219.63   Yes               155
      02           CD-ROM             0125             SALES MANAGER FACTOMATIC                700.93   No                169
                                      0051             SECRETS OF STARGATE                   1,842.99   No                197
                                      0010             US ATLAS                                540.19   No                159
      03           Hardware           0007             VIDEO CONFERENCING CARD-                369.16   Yes               205
                                                       FLY VIDEO OF SOUND
                                      0008               กF F         Panasonic Model         260.00    Yes               177
                                                       VHS F NV-VX3
      04           Multimedia         0023             JAPANESE 1, LIYC                       278.00        No            326
                                      0055             JAPANESE 2, LIYC                       278.00        No            159

 F    ก
     ก                   ก F                       F            F    F               F   F              F         (%)
     10258             015          21/10/xx                28/10/xx         0005                8               25.00%
                                                                             0100                8                0.00%
                                                                             0125               15                0.00%
     10265            181           21/10/xx                27/10/xx         0005               31                0.00%
                                                                             0010               15                0.00%
     10278            015           24/10/xx                3/11/xx          0007               16                0.00%
                                                                             0008               31               25.00%
                                                                             0023                4                0.00%
Database Design                                                                                           2



 F       ก F
       ก F        ก F                               Fก F                            F                 F
     003     P&S STORE           1                    F 159     21 (   ก)   10300       250-0750
                                     ก .
     015     Happy Shop                    29 .     F F                     10110       240-2865-75
                              ก
     181     The Book Shop    Asia Hotel 296 .       ก                      10330       267-8850-5
     213     P S Line         2675 F 9         F . 95              ก ʽก .   10330       253-0123
     008     The Bookseller   428 Rama I Road, Siam Square Bangkok          10500       233-1717
Database Design                                                                                                                               3



ก F          1 (First Normal Form)
                F           F           F          F ก กF        F                              F   F ก F        1   F F ก     ก    F   F ก
          ก ˈ           F           F

                                F (Products)        ก ก ˈ            F           F F      ʽ F           F              F       ˈ ʽ F ก F
     Fก             F             F        F      F  F                       F     F ก (PK)         F            F         F

กF ก         ก F 1
             F
               F                            F          F                             F                    F F
        01                                      0005        F            F               2000             219.63     Yes                409
                                                0100           F                                          219.63     Yes                155
        02              CD-ROM                  0125       SALES MANAGER FACTOMATIC                       700.93     No                 169
                                                0051       SECRETS OF STARGATE                          1,842.99     No                 197
                                                0010       US ATLAS                                       540.19     No                 159
        03              Hardware                0007       VIDEO CONFERENCING CARD-                       369.16     Yes                205
                                                           FLY VIDEO OF SOUND
                                                0008         กF F         Panasonic Model                   260.00   Yes                177
                                                           VHS F NV-VX3
        04              Multimedia              0023       JAPANESE 1, LIYC                                 278.00   No                 326
                                                0055       JAPANESE 2, LIYC                                 278.00   No                 159

    ก        Fก F 1
                F                           F          F                             F                    F F
        01                                      0005        F            F               2000             219.63     Yes                409
        01                                      0100           F                                          219.63     Yes                155
        02              CD-ROM                  0125       SALES MANAGER FACTOMATIC                       700.93     No                 169
        02              CD-ROM                  0051       SECRETS OF STARGATE                          1,842.99     No                 197
        02              CD-ROM                  0010       US ATLAS                                       540.19     No                 159
        03              Hardware                0007       VIDEO CONFERENCING CARD-                       369.16     Yes                205
                                                           FLY VIDEO OF SOUND
        03              Hardware                0008         กF F         Panasonic Model                   260.00   Yes                177
                                                           VHS F NV-VX3
        04              Multimedia              0023       JAPANESE 1, LIYC                                 278.00   No                 326
        04              Multimedia              0055       JAPANESE 2, LIYC                                 278.00   No                 159
Database Design                                                                                                                               4



                  ก               (Orders)            ก ก ˈ                  F       F F        ʽ F       ก            กF                 F
 ˈ ʽ F ก F                     Fก       F           F      F             F       F                    F   F ก (PK)          ʽ F       ก
       F                      ก ʽ F ก                  F ก              F ก                           F ก        F                F       ก
ก F      F                F

กF ก ก F 1
       F
    ก        ก F                                    F         F    F                        F                 F         F    (%)
   10258   015                           21/10/xx         28/10/xx                   0005                          8        25.00%
                                                                                     0100                          8         0.00%
                                                                                     0125                         15         0.00%
     10265                181            21/10/xx         27/10/xx                   0005                         31         0.00%
                                                                                     0010                         15         0.00%
     10278                015            24/10/xx             3/11/xx                0007                         16         0.00%
                                                                                     0008                         31        25.00%
                                                                                     0023                          4         0.00%

    ก Fก F 1
     ก         ก F                                  F         F    F                        F                 F         F    (%)
     10258   015                         21/10/xx         28/10/xx                   0005                          8        25.00%
     10258   015                         21/10/xx         28/10/xx                   0100                          8         0.00%
     10258   015                         21/10/xx         28/10/xx                   0125                         15         0.00%
     10265   181                         21/10/xx         27/10/xx                   0005                         31         0.00%
     10265   181                         21/10/xx         27/10/xx                   0010                         15         0.00%
     10278   015                         24/10/xx         3/11/xx                    0007                         16         0.00%
     10278   015                         24/10/xx         3/11/xx                    0008                         31        25.00%
     10278   015                         24/10/xx         3/11/xx                    0023                          4         0.00%

                      ก F (Customer) F ก F              ʽ F      ก       F F
Database Design                                                                                                                                                                        5



ก F                     2 (Second Normal Form)
                             F ก F              2     F       F                 F    F F F     (        ก F Non-key Attribute)       ก F                   F                                   F
          ก         F       ก F ก                         F

                                        F           F ก F               2   ก       ก ʽ F           ก F                     F ก (PK) ก ʽ F                         F               ก
      F         ˈ               F

                                    F (Products)                     ก F (Customers)      F ก F 2          ก F ก                                 ʽ F           F
              F (Products)                กF                       ก F (Customers) ʽ F      ก ʽ F ก F ก ก ʽ F
                                        (Orders)                    FF ก F 2          ก ʽ F     กF                F                                ก ʽ F                   ก
  F                       ˈ F                F ก(                 ก                  F ˈ F ก       Composite Key)                                Fก F 2                F                   F
               2
                           •                1         (Orders) ˈ             ก F ʽ F                                    ก                    ˈ     F ก (PK)
                                     F     ʽ F ก ʽ F ก            F         ʽ F   กF                                                 F                  ก FF
                                       F ก ก        F       F
                           •             2        ก       (OrdersDetails) ˈ          ก                                  F    ʽ F ก                                             F
                                    ˈ F ก (PK)                ʽ F        ก      ก                                           ก F ก                      F       ก                   ก
                                         F     F

กF ก ก F 2
       F
    ก        ก F                                                    F           F    F              F               F                    F          (%)
   10258   015                                      21/10/xx                28/10/xx         0005                               8                  25.00%
   10258   015                                      21/10/xx                28/10/xx         0100                               8                   0.00%
   10258   015                                      21/10/xx                28/10/xx         0125                              15                   0.00%
   10265   181                                      21/10/xx                27/10/xx         0005                              31                   0.00%
   10265   181                                      21/10/xx                27/10/xx         0010                              15                   0.00%
   10278   015                                      24/10/xx                3/11/xx          0007                              16                   0.00%
   10278   015                                      24/10/xx                3/11/xx          0008                              31                  25.00%
   10278   015                                      24/10/xx                3/11/xx          0023                               4                   0.00%
Database Design                                                                              6



    ก     Fก F 2
              (Orders)
     ก                 ก F                F             F    F
     10258          015          21/10/xx           28/10/xx
     10258          015          21/10/xx           28/10/xx
     10258          015          21/10/xx           28/10/xx
     10265          181          21/10/xx           27/10/xx
     10265          181          21/10/xx           27/10/xx
     10278          015          24/10/xx           3/11/xx
     10278          015          24/10/xx           3/11/xx
     10278          015          24/10/xx           3/11/xx
         ก        (OrderDetails)
     ก                     F                F                F    (%)
     10258          0005                             8           25.00%
     10258          0100                             8            0.00%
     10258          0125                            15            0.00%
     10265          0005                            31            0.00%
     10265          0010                            15            0.00%
     10278          0007                            16            0.00%
     10278          0008                            31           25.00%
     10278          0023                             4            0.00%

                     F        F          2      ˈ           One-to-Many   ก   (Orders)   ก
(OrderDetails)           กก       F 1                 F   F       ก
Database Design                                                                                                                         7



ก F          3 (Third Normal Form)
                     F ก F       3 F F                 F             ก               F   F F F ก          F F F ก กF
                F              F ก F 3 F ก            ก ʽ F       ก ʽ F          ก        ˈ      F           F ก                    F
  ˈ ʽ F ʽ F               F

                    F (Products)          FF ก F 3               ก ʽ F         F ก ʽ F                         F       F F F ก (PK)
        F F F (Candidate Key)                     ก          ˈ          F F2
               •           1                    F (Categories) ˈ             ก F ʽ F                     F (       ˈ    F ก
                        F)              F      ˈ F ก ก                 F F
               •            2                F (Products) ˈ               ก F ʽ F                     ก F ʽ F                 F
                      F ก (PK) ˈ           F

กF ก         ก F 3
             F
               F                  F          F                        F                      F F
        01                            0005        F           F           2000               219.63     Yes                       409
        01                            0100           F                                       219.63     Yes                       155
        02          CD-ROM            0125       SALES MANAGER FACTOMATIC                    700.93     No                        169
        02          CD-ROM            0051       SECRETS OF STARGATE                       1,842.99     No                        197
        02          CD-ROM            0010       US ATLAS                                    540.19     No                        159
        03          Hardware          0007       VIDEO CONFERENCING CARD-                    369.16     Yes                       205
                                                 FLY VIDEO OF SOUND
        03          Hardware          0008         กF F         Panasonic Model             260.00      Yes                       177
                                                 VHS F NV-VX3
        04          Multimedia        0023       JAPANESE 1, LIYC                           278.00       No                       326
        04          Multimedia        0055       JAPANESE 2, LIYC                           278.00       No                       159

    ก        Fก F 3
                  F (Categories)
                F                F
        01
        02          CD-ROM
        03          Hardware
        04          Multimedia
Database Design                                                                                                                              8



           F (Products)
               F          F                                                F                        F F
      01             0005           F                   F           2000                            219.63         Yes             409
      01             0100              F                                                            219.63         Yes             155
      02             0125          SALES MANAGER FACTOMATIC                                         700.93         No              169
      02             0051          SECRETS OF STARGATE                                            1,842.99         No              197
      02             0010          US ATLAS                                                         540.19         No              159
      03             0007          VIDEO CONFERENCING CARD-FLY VIDEO OF                             369.16         Yes             205
                                   SOUND
      03                0008         กF F         Panasonic Model VHS F NV-                           260.00       Yes             177
                                   VX3
      04                0023       JAPANESE 1, LIYC                                                   278.00       No              326
      04                0055       JAPANESE 2, LIYC                                                   278.00       No              159

                         F     F                2           ˈ       One-to-Many ก               F (Categories)                 F (Products)
       ก          F 1                       F       F           F

                       (Orders),        ก      (OrderDetails)                       ก F (Customers)            3               ก ʽ F ก
            ก     F ก (PK)               F F ก ʽ F

           ก ก Normalization F          3                   ก F BCNF (Boyce/Codd Normal Form)         ˈ ก F    3         F ก             F
Database Design                                                                                                                               9



ก F      4 (Fourth Normal Form)
                    F ก F 4 F        F ก   Fก            ก   F (Multivalued Dependency)                          ˈ                 F    Many-to-
Many                     ก F           ก   ʽ FB        F      ʽ FA ก         Fก      ˈ                                   กก ʽ F         ʽ FC
               F      F ก F 4 F        ก      F      ก          F ʽ F ก F ก F
                  F     F ก             FF      ก        F     ก F 4
                 F ก Fก F 4 ก        Fก    Multivalued              F

          F
         ก ก                 ก ก                           F     ก
       2001                                             1001                    ก
                                                        1002                                                 F
                                                                                         F
       2002                                             1003                     ˁ
                                                                                                 F
       2003                                             1004                    ก
                                                        1005                                                 F

             ˈ First Normal Form F
         ก ก                  ก ก                          F     ก
       2001                                             1001                    ก
       2001                                             1001                                             F
       2001                                             1001                         F
       2001                                             1002                    ก
       2001                                             1002                                             F
       2001                                             1002                         F
       2002                                             1003                     ˁ
       2002                                             1003                                 F
       2003                                             1004                    ก
       2003                                             1005                                         F

               ก         กF     ˈ          F ก F 3      F      F ก                                                   F         F F F ก (PK)
  F F F (Candidate Key) F F F ก F 4           ก ก     Fก กF F กก                                                             F ก 2        F
         3                  F ก ก                 ˈ F     F Fก                                                           F ˈ 4NF F F ก         F
           ก ˈ 2       F
Database Design                                                                                                        10



         F ก      Fก F 4
        ก ก                     ก ก                       F             ก
      2001                                             1001
      2001                                             1002
      2002                                             1003
      2003                                             1004
      2003                                             1005

        ก ก                     ก ก
      2001                                     ก
      2001                                                      F
      2001                                         F
      2002                                     ˁ
      2002                                              F
      2003                                     ก
      2003                                                  F

                        F ก Normalization   F ก F 3ก                            F       ก     F   ก       F   Fก F 4

E-R Diagram




                  ก F
                   ก Datanamic F ก ก                                    F   F       ก       ก ก       F         ʽ F ˈ
Foreign Key (FK) F ˈ Primary Key (PK) F                             ก               ก             ก               ก ʽ F
   ก      F ˈ Primary Key (PK)

Más contenido relacionado

Más de Warawut

Business Computer Project 4
Business Computer Project 4Business Computer Project 4
Business Computer Project 4Warawut
 
Object-Oriented Programming 10
Object-Oriented Programming 10Object-Oriented Programming 10
Object-Oriented Programming 10Warawut
 
Object-Oriented Programming 9
Object-Oriented Programming 9Object-Oriented Programming 9
Object-Oriented Programming 9Warawut
 
Object-Oriented Programming 8
Object-Oriented Programming 8Object-Oriented Programming 8
Object-Oriented Programming 8Warawut
 
Object-Oriented Programming 7
Object-Oriented Programming 7Object-Oriented Programming 7
Object-Oriented Programming 7Warawut
 
Object-Oriented Programming 6
Object-Oriented Programming 6Object-Oriented Programming 6
Object-Oriented Programming 6Warawut
 
Management Information System 6
Management Information System 6Management Information System 6
Management Information System 6Warawut
 
Management Information System 5
Management Information System 5Management Information System 5
Management Information System 5Warawut
 
Management Information System 4
Management Information System 4Management Information System 4
Management Information System 4Warawut
 
Object-Oriented Programming 5
Object-Oriented Programming 5Object-Oriented Programming 5
Object-Oriented Programming 5Warawut
 
Business Computer Project 3
Business Computer Project 3Business Computer Project 3
Business Computer Project 3Warawut
 
Management Information System 3
Management Information System 3Management Information System 3
Management Information System 3Warawut
 
Business Computer Project 2
Business Computer Project 2Business Computer Project 2
Business Computer Project 2Warawut
 
Chapter 2 Strategy & Information System
Chapter 2 Strategy & Information SystemChapter 2 Strategy & Information System
Chapter 2 Strategy & Information SystemWarawut
 
Object-Oriented Programming 4
Object-Oriented Programming 4Object-Oriented Programming 4
Object-Oriented Programming 4Warawut
 
Business Computer Project 1
Business Computer Project 1Business Computer Project 1
Business Computer Project 1Warawut
 
Chapter 1 Organization & MIS
Chapter 1 Organization & MISChapter 1 Organization & MIS
Chapter 1 Organization & MISWarawut
 
Object-Oriented Programming 3
Object-Oriented Programming 3Object-Oriented Programming 3
Object-Oriented Programming 3Warawut
 
Object-Oriented Programming 2
Object-Oriented Programming 2Object-Oriented Programming 2
Object-Oriented Programming 2Warawut
 
Object-Oriented Programming 1
Object-Oriented Programming 1Object-Oriented Programming 1
Object-Oriented Programming 1Warawut
 

Más de Warawut (20)

Business Computer Project 4
Business Computer Project 4Business Computer Project 4
Business Computer Project 4
 
Object-Oriented Programming 10
Object-Oriented Programming 10Object-Oriented Programming 10
Object-Oriented Programming 10
 
Object-Oriented Programming 9
Object-Oriented Programming 9Object-Oriented Programming 9
Object-Oriented Programming 9
 
Object-Oriented Programming 8
Object-Oriented Programming 8Object-Oriented Programming 8
Object-Oriented Programming 8
 
Object-Oriented Programming 7
Object-Oriented Programming 7Object-Oriented Programming 7
Object-Oriented Programming 7
 
Object-Oriented Programming 6
Object-Oriented Programming 6Object-Oriented Programming 6
Object-Oriented Programming 6
 
Management Information System 6
Management Information System 6Management Information System 6
Management Information System 6
 
Management Information System 5
Management Information System 5Management Information System 5
Management Information System 5
 
Management Information System 4
Management Information System 4Management Information System 4
Management Information System 4
 
Object-Oriented Programming 5
Object-Oriented Programming 5Object-Oriented Programming 5
Object-Oriented Programming 5
 
Business Computer Project 3
Business Computer Project 3Business Computer Project 3
Business Computer Project 3
 
Management Information System 3
Management Information System 3Management Information System 3
Management Information System 3
 
Business Computer Project 2
Business Computer Project 2Business Computer Project 2
Business Computer Project 2
 
Chapter 2 Strategy & Information System
Chapter 2 Strategy & Information SystemChapter 2 Strategy & Information System
Chapter 2 Strategy & Information System
 
Object-Oriented Programming 4
Object-Oriented Programming 4Object-Oriented Programming 4
Object-Oriented Programming 4
 
Business Computer Project 1
Business Computer Project 1Business Computer Project 1
Business Computer Project 1
 
Chapter 1 Organization & MIS
Chapter 1 Organization & MISChapter 1 Organization & MIS
Chapter 1 Organization & MIS
 
Object-Oriented Programming 3
Object-Oriented Programming 3Object-Oriented Programming 3
Object-Oriented Programming 3
 
Object-Oriented Programming 2
Object-Oriented Programming 2Object-Oriented Programming 2
Object-Oriented Programming 2
 
Object-Oriented Programming 1
Object-Oriented Programming 1Object-Oriented Programming 1
Object-Oriented Programming 1
 

Último

Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
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
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
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
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
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
 
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
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
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
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 

Último (20)

Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
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
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
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
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
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
 
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...
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
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
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 

Database design

  • 1. Database Design 1 ก ก F (Database Design) F F F F F F F F 01 0005 F F 2000 219.63 Yes 409 0100 F 219.63 Yes 155 02 CD-ROM 0125 SALES MANAGER FACTOMATIC 700.93 No 169 0051 SECRETS OF STARGATE 1,842.99 No 197 0010 US ATLAS 540.19 No 159 03 Hardware 0007 VIDEO CONFERENCING CARD- 369.16 Yes 205 FLY VIDEO OF SOUND 0008 กF F Panasonic Model 260.00 Yes 177 VHS F NV-VX3 04 Multimedia 0023 JAPANESE 1, LIYC 278.00 No 326 0055 JAPANESE 2, LIYC 278.00 No 159 F ก ก ก F F F F F F F (%) 10258 015 21/10/xx 28/10/xx 0005 8 25.00% 0100 8 0.00% 0125 15 0.00% 10265 181 21/10/xx 27/10/xx 0005 31 0.00% 0010 15 0.00% 10278 015 24/10/xx 3/11/xx 0007 16 0.00% 0008 31 25.00% 0023 4 0.00%
  • 2. Database Design 2 F ก F ก F ก F Fก F F F 003 P&S STORE 1 F 159 21 ( ก) 10300 250-0750 ก . 015 Happy Shop 29 . F F 10110 240-2865-75 ก 181 The Book Shop Asia Hotel 296 . ก 10330 267-8850-5 213 P S Line 2675 F 9 F . 95 ก ʽก . 10330 253-0123 008 The Bookseller 428 Rama I Road, Siam Square Bangkok 10500 233-1717
  • 3. Database Design 3 ก F 1 (First Normal Form) F F F F ก กF F F F ก F 1 F F ก ก F F ก ก ˈ F F F (Products) ก ก ˈ F F F ʽ F F F ˈ ʽ F ก F Fก F F F F F F F ก (PK) F F F กF ก ก F 1 F F F F F F F 01 0005 F F 2000 219.63 Yes 409 0100 F 219.63 Yes 155 02 CD-ROM 0125 SALES MANAGER FACTOMATIC 700.93 No 169 0051 SECRETS OF STARGATE 1,842.99 No 197 0010 US ATLAS 540.19 No 159 03 Hardware 0007 VIDEO CONFERENCING CARD- 369.16 Yes 205 FLY VIDEO OF SOUND 0008 กF F Panasonic Model 260.00 Yes 177 VHS F NV-VX3 04 Multimedia 0023 JAPANESE 1, LIYC 278.00 No 326 0055 JAPANESE 2, LIYC 278.00 No 159 ก Fก F 1 F F F F F F 01 0005 F F 2000 219.63 Yes 409 01 0100 F 219.63 Yes 155 02 CD-ROM 0125 SALES MANAGER FACTOMATIC 700.93 No 169 02 CD-ROM 0051 SECRETS OF STARGATE 1,842.99 No 197 02 CD-ROM 0010 US ATLAS 540.19 No 159 03 Hardware 0007 VIDEO CONFERENCING CARD- 369.16 Yes 205 FLY VIDEO OF SOUND 03 Hardware 0008 กF F Panasonic Model 260.00 Yes 177 VHS F NV-VX3 04 Multimedia 0023 JAPANESE 1, LIYC 278.00 No 326 04 Multimedia 0055 JAPANESE 2, LIYC 278.00 No 159
  • 4. Database Design 4 ก (Orders) ก ก ˈ F F F ʽ F ก กF F ˈ ʽ F ก F Fก F F F F F F F ก (PK) ʽ F ก F ก ʽ F ก F ก F ก F ก F F ก ก F F F กF ก ก F 1 F ก ก F F F F F F F (%) 10258 015 21/10/xx 28/10/xx 0005 8 25.00% 0100 8 0.00% 0125 15 0.00% 10265 181 21/10/xx 27/10/xx 0005 31 0.00% 0010 15 0.00% 10278 015 24/10/xx 3/11/xx 0007 16 0.00% 0008 31 25.00% 0023 4 0.00% ก Fก F 1 ก ก F F F F F F F (%) 10258 015 21/10/xx 28/10/xx 0005 8 25.00% 10258 015 21/10/xx 28/10/xx 0100 8 0.00% 10258 015 21/10/xx 28/10/xx 0125 15 0.00% 10265 181 21/10/xx 27/10/xx 0005 31 0.00% 10265 181 21/10/xx 27/10/xx 0010 15 0.00% 10278 015 24/10/xx 3/11/xx 0007 16 0.00% 10278 015 24/10/xx 3/11/xx 0008 31 25.00% 10278 015 24/10/xx 3/11/xx 0023 4 0.00% ก F (Customer) F ก F ʽ F ก F F
  • 5. Database Design 5 ก F 2 (Second Normal Form) F ก F 2 F F F F F F ( ก F Non-key Attribute) ก F F F ก F ก F ก F F F ก F 2 ก ก ʽ F ก F F ก (PK) ก ʽ F F ก F ˈ F F (Products) ก F (Customers) F ก F 2 ก F ก ʽ F F F (Products) กF ก F (Customers) ʽ F ก ʽ F ก F ก ก ʽ F (Orders) FF ก F 2 ก ʽ F กF F ก ʽ F ก F ˈ F F ก( ก F ˈ F ก Composite Key) Fก F 2 F F 2 • 1 (Orders) ˈ ก F ʽ F ก ˈ F ก (PK) F ʽ F ก ʽ F ก F ʽ F กF F ก FF F ก ก F F • 2 ก (OrdersDetails) ˈ ก F ʽ F ก F ˈ F ก (PK) ʽ F ก ก ก F ก F ก ก F F กF ก ก F 2 F ก ก F F F F F F F (%) 10258 015 21/10/xx 28/10/xx 0005 8 25.00% 10258 015 21/10/xx 28/10/xx 0100 8 0.00% 10258 015 21/10/xx 28/10/xx 0125 15 0.00% 10265 181 21/10/xx 27/10/xx 0005 31 0.00% 10265 181 21/10/xx 27/10/xx 0010 15 0.00% 10278 015 24/10/xx 3/11/xx 0007 16 0.00% 10278 015 24/10/xx 3/11/xx 0008 31 25.00% 10278 015 24/10/xx 3/11/xx 0023 4 0.00%
  • 6. Database Design 6 ก Fก F 2 (Orders) ก ก F F F F 10258 015 21/10/xx 28/10/xx 10258 015 21/10/xx 28/10/xx 10258 015 21/10/xx 28/10/xx 10265 181 21/10/xx 27/10/xx 10265 181 21/10/xx 27/10/xx 10278 015 24/10/xx 3/11/xx 10278 015 24/10/xx 3/11/xx 10278 015 24/10/xx 3/11/xx ก (OrderDetails) ก F F F (%) 10258 0005 8 25.00% 10258 0100 8 0.00% 10258 0125 15 0.00% 10265 0005 31 0.00% 10265 0010 15 0.00% 10278 0007 16 0.00% 10278 0008 31 25.00% 10278 0023 4 0.00% F F 2 ˈ One-to-Many ก (Orders) ก (OrderDetails) กก F 1 F F ก
  • 7. Database Design 7 ก F 3 (Third Normal Form) F ก F 3 F F F ก F F F F ก F F F ก กF F F ก F 3 F ก ก ʽ F ก ʽ F ก ˈ F F ก F ˈ ʽ F ʽ F F F (Products) FF ก F 3 ก ʽ F F ก ʽ F F F F F ก (PK) F F F (Candidate Key) ก ˈ F F2 • 1 F (Categories) ˈ ก F ʽ F F ( ˈ F ก F) F ˈ F ก ก F F • 2 F (Products) ˈ ก F ʽ F ก F ʽ F F F ก (PK) ˈ F กF ก ก F 3 F F F F F F F 01 0005 F F 2000 219.63 Yes 409 01 0100 F 219.63 Yes 155 02 CD-ROM 0125 SALES MANAGER FACTOMATIC 700.93 No 169 02 CD-ROM 0051 SECRETS OF STARGATE 1,842.99 No 197 02 CD-ROM 0010 US ATLAS 540.19 No 159 03 Hardware 0007 VIDEO CONFERENCING CARD- 369.16 Yes 205 FLY VIDEO OF SOUND 03 Hardware 0008 กF F Panasonic Model 260.00 Yes 177 VHS F NV-VX3 04 Multimedia 0023 JAPANESE 1, LIYC 278.00 No 326 04 Multimedia 0055 JAPANESE 2, LIYC 278.00 No 159 ก Fก F 3 F (Categories) F F 01 02 CD-ROM 03 Hardware 04 Multimedia
  • 8. Database Design 8 F (Products) F F F F F 01 0005 F F 2000 219.63 Yes 409 01 0100 F 219.63 Yes 155 02 0125 SALES MANAGER FACTOMATIC 700.93 No 169 02 0051 SECRETS OF STARGATE 1,842.99 No 197 02 0010 US ATLAS 540.19 No 159 03 0007 VIDEO CONFERENCING CARD-FLY VIDEO OF 369.16 Yes 205 SOUND 03 0008 กF F Panasonic Model VHS F NV- 260.00 Yes 177 VX3 04 0023 JAPANESE 1, LIYC 278.00 No 326 04 0055 JAPANESE 2, LIYC 278.00 No 159 F F 2 ˈ One-to-Many ก F (Categories) F (Products) ก F 1 F F F (Orders), ก (OrderDetails) ก F (Customers) 3 ก ʽ F ก ก F ก (PK) F F ก ʽ F ก ก Normalization F 3 ก F BCNF (Boyce/Codd Normal Form) ˈ ก F 3 F ก F
  • 9. Database Design 9 ก F 4 (Fourth Normal Form) F ก F 4 F F ก Fก ก F (Multivalued Dependency) ˈ F Many-to- Many ก F ก ʽ FB F ʽ FA ก Fก ˈ กก ʽ F ʽ FC F F ก F 4 F ก F ก F ʽ F ก F ก F F F ก FF ก F ก F 4 F ก Fก F 4 ก Fก Multivalued F F ก ก ก ก F ก 2001 1001 ก 1002 F F 2002 1003 ˁ F 2003 1004 ก 1005 F ˈ First Normal Form F ก ก ก ก F ก 2001 1001 ก 2001 1001 F 2001 1001 F 2001 1002 ก 2001 1002 F 2001 1002 F 2002 1003 ˁ 2002 1003 F 2003 1004 ก 2003 1005 F ก กF ˈ F ก F 3 F F ก F F F F ก (PK) F F F (Candidate Key) F F F ก F 4 ก ก Fก กF F กก F ก 2 F 3 F ก ก ˈ F F Fก F ˈ 4NF F F ก F ก ˈ 2 F
  • 10. Database Design 10 F ก Fก F 4 ก ก ก ก F ก 2001 1001 2001 1002 2002 1003 2003 1004 2003 1005 ก ก ก ก 2001 ก 2001 F 2001 F 2002 ˁ 2002 F 2003 ก 2003 F F ก Normalization F ก F 3ก F ก F ก F Fก F 4 E-R Diagram ก F ก Datanamic F ก ก F F ก ก ก F ʽ F ˈ Foreign Key (FK) F ˈ Primary Key (PK) F ก ก ก ก ʽ F ก F ˈ Primary Key (PK)