SlideShare a Scribd company logo
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)

More Related Content

More from Warawut

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

More from 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
 

Recently uploaded

Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
bennyroshan06
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
Steve Thomason
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
PedroFerreira53928
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 

Recently uploaded (20)

Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.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)