SlideShare a Scribd company logo
1 of 35
Download to read offline
Mr.Warawut Khangkhan
Facebook:
Facebook: http://www.facebook.com/AjWarawut
Twitter: http://twitter.com/awarawut
E-Mail: awarawut@hotmail.com
Mobile: 089-461-9591
         089-461-



                    5ก ก           F
                    (Database Design)
กF ก F                         F                       F       ก           F
     กF
  ก ก                                F                       F
       ก               ก                     F
           F            F
                             F           F         F F ก             F   ก
       ก                                         F FF ก
Mr.Warawut Khangkhan        Chapter 05 Database Design                           2
F         ก                         ก F
               (Entity)
                   F (Attribute)
                      F (Relationships)




Mr.Warawut Khangkhan      Chapter 05 Database Design   3
(Entity)
                    F                                          F
               F        F F ก F                           F   ก ก
  ก                         F   ก                   F ก          ก
           F             ก    F                     กF                F ก
           F
           ก F                                                      F
       (Customers)                   (Orders)                 (Products)
Mr.Warawut Khangkhan        Chapter 05 Database Design                     4
F (Attribute)
            F              ก
                 กF                    F                    F
     ก F (Customers)
             กF
            กF
           FกF                                         F(   )
                 F
                    F
Mr.Warawut Khangkhan      Chapter 05 Database Design            5
F (Attribute)
                       (Orders)                                      F (Products)
                                                                                F
                                    F                                         F
                       F            F                                    F F
                       กF                                                 F           F
                            F                                               F
                                F                                                   F
                   F                                                              F
Mr.Warawut Khangkhan                    Chapter 05 Database Design                        6
F (Relationships)
                           ก F (Customers)                   (Orders)
                       F           กF       1 N
            F                     กF                                      F
                 F               FกF                         F            F
                                       F                     กF
                                          F                       F
                                                                      F
                                                         F
Mr.Warawut Khangkhan        Chapter 05 Database Design                        7
F                                F (Relational Database)
       ก
                                 ก F (Customers)                  (Orders)
                       F                 กF
                                                  1 N
                                        กF                                     F
                           F           FกF                        F            F
           F ก             F F               F                    กF
                                                F                      F
   F ก
                                                                           F
                                                              F
Mr.Warawut Khangkhan             Chapter 05 Database Design                    8
F      F               F
         F (Field) /                   F (Attribute)
        F F              ก                กก F              ก
            F (Record) /               (Tuple)
             ก         F                    F      ก
             (Table) /               (Relation)
             ก            F                     F       ก

Mr.Warawut Khangkhan       Chapter 05 Database Design           9
F     F                F
               Field
  ก F     F ก F                 F กF
003     P&S STORE               1                               F 159   21 (   ก)   ก .
015     Happy Shop                            29 .             F F             ก
                                                                        Record
181     The Book Shop        Asia Hotel 296 .              ก
213     P'S Line             2675    F9         F    .95                ก ก .
008     The Bookseller       428 Rama I Road, Siam Square Bangkok.




Mr.Warawut Khangkhan          Chapter 05 Database Design                            10
F (Relationships)
              F     F
  (One-to-One Relationships)
                F        FกF
  (One-to-Many Relationships)
                  F กF FกF
  (Many-to-Many Relationships)

Mr.Warawut Khangkhan   Chapter 05 Database Design         11
One-to-
One-to-One Relationships (1:1)
                       F                        F       F                          ก
       F 1     F                                                              Fก
     ก    F 1    F  ก                                             F       F
            ก 1 F F                                                   F
             F                                      F       1:1



Mr.Warawut Khangkhan       Chapter 05 Database Design                              12
F
                         F        F            F                                                                                 F   F (    )

1:1               0005
                  0100
                                      F
                                           F
                                                               F                         90                                            219.63
                                                                                                                                       219.63
                                                                                                                                                 Yes
                                                                                                                                                 Yes
                  0125           SALES MANAGER FACTOMATIC                                                                              700.93    No
                  0051           SECRETS OF STARGATE                                                                                  1,842.99   No
                  0010           US ATLAS                                                                                              540.19    No
                  0007           VIDEO CONFERENCING CARD-FLY VIDEO OF SOUND                                                            369.16    Yes
                  0008                    กF       F                        Panasonic Model VHS F NV-VX3                               260.00    Yes
                  0023           JAPANESE 1, LIYC                                                                                      278.00    No
                  0055           JAPANESE 2, LIYC                                                                                      278.00    No
                   1
                                                                                 F
                                                           F       F                 F
                                          0005                         F                      F      90                                                400
                                          0100                               F                                                                         155
                                          0125                     SALES MANAGER FACTOMATIC                                                            169
                                          0051                     SECRETS OF STARGATE                                                                 197
                                          0010                     US ATLAS                                                                            159
                                          0007                     VIDEO CONFERENCING CARD-FLY VIDEO OF SOUND                                          205
                                          0008                             กF             F       Panasonic Model VHS F NV-VX3                         177

Mr.Warawut Khangkhan                      0023 Chapter 05 Database Design
                                                JAPANESE 1, LIYC                                                                                       326   13
                             1                                                                                                                         159
                                          0055 JAPANESE 2, LIYC
One-to-
One-to-One Relationships (1:1)
                           F        1:1
       F
                               F       F                        F            ก
                               ก               F   F ก              F
           F F                 ก           F
                       ก                             F

Mr.Warawut Khangkhan               Chapter 05 Database Design           14
One-To-
One-To-Many Relationships (1:N)
                          (1
                           F                       F
            F
                       F                                             F                F 1
                F                                           Fก                              F 2
                F       กก F               ก                                 F       กF
                        F F                                              F       F                F
                       กF                                        F
Mr.Warawut Khangkhan           Chapter 05 Database Design                                    15
กF

1:N     กF
      003
                 F กF
                P&S STORE
                                                F ก F
                                                1                                 F 159     21 (       ก)   ก .
  1   015       Happy Shop                                29 .                   F F                   ก
      181       The Book Shop              Asia Hotel 296 .                  ก
      213       P'S Line                   2675     F9             F   .95                  ก ก .
      008       The Bookseller             428 Rama I Road, Siam Square Bangkok.

                                 F          N

                    ก        F         กF                      F             F         F           F             F   F   F       (%)
                    10258            015            21/10/xx            28/10/xx           0005             8                25.00%
                                                                                           0100             8                0.00%
            N
                                                                                           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%
Many-to-
Many-to-Many Relationships (M:N)
                           F                   F                     F    FF
               ก                       F                        F       F
       F               F                               F       Many-to-One ก
         2                                                 F   Many-to-Many
  Relationships



Mr.Warawut Khangkhan           Chapter 05 Database Design                  17
Many-to-
Many-to-Many Relationships (M:N)
            F                        F       กF
      F                    F กF 1 F
  ก ก                  F                        F               F
   F ก                     F   F                           Fก       F
                  Many-to-Many



Mr.Warawut Khangkhan          Chapter 05 Database Design                18
ก                 F
                                                                                                 N
                                                                                                     ก           F                 F              F   F   F         (%)
M:N                                                                                          N
                                                                                                     10258             0005                  8                25.00%
                                   F                                                                 10258             0100        N         8                0.00%
                                                                                             N
      ก               F                             ก F                   F      F       F           10258             0125                  15               0.00%
  1   10258                                     015            21/10/xx       28/10/xx               10265             0005                  31               0.00%
      10265                                     181            21/10/xx       27/10/xx               10265             0010N                 15               0.00%
      10278                                     015            24/10/xx       3/11/xx                10278             0007                  16               0.00%
                                                                                                     10278             0008                  31               25.00%
                                                                                                     10278             0023                  4                0.00%

                  F
              F            F                    F                                                            F       F (       )
  1   0005                     F                          F      90                                                    219.63          Yes                    400
      0100                                  F                                                                          219.63          Yes                    155
      0125                SALES MANAGER FACTOMATIC                                                                     700.93          No                     169
      0051                SECRETS OF STARGATE                                                                         1,842.99         No                     197
      0010                US ATLAS                                                                                     540.19          No                     159
      0007                VIDEO CONFERENCING CARD-FLY VIDEO OF SOUND                                                   369.16          Yes                    205
      0008                             กF           F         Panasonic Model VHS F NV-VX3                             260.00          Yes                    177
      0023                JAPANESE 1, LIYC                            Chapter 05 Database Design                       278.00          No                     326
      0055                JAPANESE 2, LIYC                                                                             278.00          No                     159
F                F               F
  Primary Key: PK ( F ก)
  Candidate Key ( F F F )
  Composite Key
  Foreign Key: FK



Mr.Warawut Khangkhan       Chapter 05 Database Design       20
Primary Key: PK
                       F   F    F ก                      F     F
                               F F                 Primary Key
                                   F




Mr.Warawut Khangkhan           Chapter 05 Database Design          21
Candidate Key
                 F                             F                  ก      F
                          Primary Key                     F Fก          F ก
      F                           F ก F                           ก F
      F ก              F F F       F ก                     FF F




Mr.Warawut Khangkhan         Chapter 05 Database Design                      22
Composite Key
                       F F F F                              F       F
         F     ก      Primary Key                       F       F       ก
        ก F Composite Key




Mr.Warawut Khangkhan       Chapter 05 Database Design                       23
Foreign Key
                 F                      ( Many)
             Fก   F                     Primary Key   ก
      ( One)                              2               F
  One-to-Many F ก




Mr.Warawut Khangkhan   Chapter 05 Database Design             24
ก           F
                                                                    ก       F             F          F   F   F        (%)
                                                          N         10258          0005         8                25.00%
                 1
             F                                                      10258          0100         8                0.00%
 ก       F             กF              F      F       F             10258          0125         15               0.00%
 10258               015    21/10/xx       28/10/xx                 10265          0005         31               0.00%
 10265               181    21/10/xx       27/10/xx                 10265          0010         15               0.00%
 10278               015    24/10/xx       3/11/xx                  10278          0007         16               0.00%
                                                                    10278          0008         31               25.00%
Primary Key
                                                                    10278          0023         4                0.00%

                                                          Foreign Key           Composite Key




     Mr.Warawut Khangkhan                         Chapter 05 Database Design                                     25
ก             ก                                F
                  ก ก F                             F
    (Application Database)
       F ก
         F




Mr.Warawut Khangkhan   Chapter 05 Database Design       26
F ก                   ก              F
                           F       F                    F
                                             ก ก FF
     F           F                          กF                                  F
         F           ก(        F             ก F ก)
                     ก             ก        ก F F                       F F F
                       F
             F                               F F            ก

Mr.Warawut Khangkhan                   Chapter 05 Database Design                   27
ก          ก                                 F
1.   ก                       ก                                  F
2.   ก                 F ก                                F F
3.   ก                             F          F                         F
4.     ก               F                             F                      F
     ก ก Normalization


Mr.Warawut Khangkhan         Chapter 05 Database Design                         28
Normalization
                           F ก  F                                                 F       F
       ก                F ก กF                                                  Fก
                       F ก Normalization
                         F          F                                   F F F        กF       F

                Fก                          กF                  F
           FF
                Fก                                F     F               ก        F
                             F          F                   F       F
Mr.Warawut Khangkhan             Chapter 05 Database Design                                   29
F F ก Normalization
0NF
                F       F กF         ก (Repeating Group)
1NF
                F       F               F    F F F                ก F       F            F
2NF
                F       F            F                        ก         F       F F PK
3NF                    Candidate Key

                F       F ก        Fก               ก F (Multivalve Dependency)
4NF
Mr.Warawut Khangkhan             Chapter 05 Database Design                       30
ก F 1 (First Normal Form)
         F        F      F         F ก     F
                         F   F ก F 1 F F
  ก          ก         F F ก     ก       F                F




Mr.Warawut Khangkhan         Chapter 05 Database Design       31
ก 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 กก              F
     F               ก F                        F
Mr.Warawut Khangkhan            Chapter 05 Database Design               32
ก F 3 (Third Normal Form)
                     F ก F          2            F        F                 F
                      ก                      F                F F F ก           F
     F F
                             F                           F ก F      3 F ก
       ก         F      ก               F                  ก                             F
              F ก                                    F       F          F                    F

Mr.Warawut Khangkhan             Chapter 05 Database Design                         33
ก F 4 (Fourth Normal Form)
           F ก F 4 F F ก            Fก
      ก F (Multivalve Dependency)                        F
         Many-to-Many             ก F
             ก          FB     F  FA ก
     Fก              กก F            FC
                F     F ก F 4 F       ก
       F      ก F         F ก F ก F
Mr.Warawut Khangkhan   Chapter 05 Database Design   34
E-R Diagram




Mr.Warawut Khangkhan   Chapter 05 Database Design   35

More Related Content

What's hot

สร้างสรรค์ผลงานด้วยโปรแกรม Adobe Photoshop CS3 ที่มา http://www.skr.ac.th/~...
สร้างสรรค์ผลงานด้วยโปรแกรม  Adobe  Photoshop CS3 ที่มา http://www.skr.ac.th/~...สร้างสรรค์ผลงานด้วยโปรแกรม  Adobe  Photoshop CS3 ที่มา http://www.skr.ac.th/~...
สร้างสรรค์ผลงานด้วยโปรแกรม Adobe Photoshop CS3 ที่มา http://www.skr.ac.th/~...เชาวลักษณ์ ชาวงษ์
 
แผนการจัดการเรียนรู้ที่ 8 คุณธรรม จริยธรรมในการใช้เทคโนโลยีสารสนเทศ
แผนการจัดการเรียนรู้ที่ 8 คุณธรรม จริยธรรมในการใช้เทคโนโลยีสารสนเทศแผนการจัดการเรียนรู้ที่ 8 คุณธรรม จริยธรรมในการใช้เทคโนโลยีสารสนเทศ
แผนการจัดการเรียนรู้ที่ 8 คุณธรรม จริยธรรมในการใช้เทคโนโลยีสารสนเทศNattapon
 
แผนการจัดการเรียนรู้ที่ 1 องค์ประกอบของระบบสารสนเทศ
แผนการจัดการเรียนรู้ที่ 1 องค์ประกอบของระบบสารสนเทศแผนการจัดการเรียนรู้ที่ 1 องค์ประกอบของระบบสารสนเทศ
แผนการจัดการเรียนรู้ที่ 1 องค์ประกอบของระบบสารสนเทศNattapon
 
แผนการจัดการเรียนรู้ที่ 2 ข้อมูลและสารสนเทศ
แผนการจัดการเรียนรู้ที่ 2 ข้อมูลและสารสนเทศแผนการจัดการเรียนรู้ที่ 2 ข้อมูลและสารสนเทศ
แผนการจัดการเรียนรู้ที่ 2 ข้อมูลและสารสนเทศNattapon
 
การสืบค้นขั้นสูง
การสืบค้นขั้นสูงการสืบค้นขั้นสูง
การสืบค้นขั้นสูงfangwittayayon
 
Personality test
Personality testPersonality test
Personality testpooyu
 
Function C
Function CFunction C
Function CWarawut
 
"เปิดโลกโอเพนซอร์ส" หนังสือรวม Open Source success story ของซิป้า
"เปิดโลกโอเพนซอร์ส" หนังสือรวม Open Source success story ของซิป้า"เปิดโลกโอเพนซอร์ส" หนังสือรวม Open Source success story ของซิป้า
"เปิดโลกโอเพนซอร์ส" หนังสือรวม Open Source success story ของซิป้าOsdev
 
แผนการจัดการเรียนรู้ที่ 5 โครงงานสร้างบทเรียนคอมพิวเตอร์ช่วยสอน
แผนการจัดการเรียนรู้ที่ 5 โครงงานสร้างบทเรียนคอมพิวเตอร์ช่วยสอนแผนการจัดการเรียนรู้ที่ 5 โครงงานสร้างบทเรียนคอมพิวเตอร์ช่วยสอน
แผนการจัดการเรียนรู้ที่ 5 โครงงานสร้างบทเรียนคอมพิวเตอร์ช่วยสอนNattapon
 
New Role for Librarian and Knowledge Repository
New Role for Librarian and Knowledge RepositoryNew Role for Librarian and Knowledge Repository
New Role for Librarian and Knowledge RepositoryBoonlert Aroonpiboon
 
คู่มือโปรแกรม Book mark2551
คู่มือโปรแกรม Book mark2551  คู่มือโปรแกรม Book mark2551
คู่มือโปรแกรม Book mark2551 Narongchai Wanmanee
 
สารและสมบัติของสารและการจำแนก
สารและสมบัติของสารและการจำแนกสารและสมบัติของสารและการจำแนก
สารและสมบัติของสารและการจำแนกmaechai21
 
ตรรกศาสตร์เบื้องต้น
ตรรกศาสตร์เบื้องต้นตรรกศาสตร์เบื้องต้น
ตรรกศาสตร์เบื้องต้นwanwilai
 
อารยธรรมอียิปต์
อารยธรรมอียิปต์ อารยธรรมอียิปต์
อารยธรรมอียิปต์ Pikcolo Pik
 
15ไฟฟ้าสถิต
15ไฟฟ้าสถิต15ไฟฟ้าสถิต
15ไฟฟ้าสถิตDoc Edu
 

What's hot (20)

สร้างสรรค์ผลงานด้วยโปรแกรม Adobe Photoshop CS3 ที่มา http://www.skr.ac.th/~...
สร้างสรรค์ผลงานด้วยโปรแกรม  Adobe  Photoshop CS3 ที่มา http://www.skr.ac.th/~...สร้างสรรค์ผลงานด้วยโปรแกรม  Adobe  Photoshop CS3 ที่มา http://www.skr.ac.th/~...
สร้างสรรค์ผลงานด้วยโปรแกรม Adobe Photoshop CS3 ที่มา http://www.skr.ac.th/~...
 
แผนการจัดการเรียนรู้ที่ 8 คุณธรรม จริยธรรมในการใช้เทคโนโลยีสารสนเทศ
แผนการจัดการเรียนรู้ที่ 8 คุณธรรม จริยธรรมในการใช้เทคโนโลยีสารสนเทศแผนการจัดการเรียนรู้ที่ 8 คุณธรรม จริยธรรมในการใช้เทคโนโลยีสารสนเทศ
แผนการจัดการเรียนรู้ที่ 8 คุณธรรม จริยธรรมในการใช้เทคโนโลยีสารสนเทศ
 
แผนการจัดการเรียนรู้ที่ 1 องค์ประกอบของระบบสารสนเทศ
แผนการจัดการเรียนรู้ที่ 1 องค์ประกอบของระบบสารสนเทศแผนการจัดการเรียนรู้ที่ 1 องค์ประกอบของระบบสารสนเทศ
แผนการจัดการเรียนรู้ที่ 1 องค์ประกอบของระบบสารสนเทศ
 
Serial controldoc190154
Serial controldoc190154Serial controldoc190154
Serial controldoc190154
 
แผนการจัดการเรียนรู้ที่ 2 ข้อมูลและสารสนเทศ
แผนการจัดการเรียนรู้ที่ 2 ข้อมูลและสารสนเทศแผนการจัดการเรียนรู้ที่ 2 ข้อมูลและสารสนเทศ
แผนการจัดการเรียนรู้ที่ 2 ข้อมูลและสารสนเทศ
 
Index with Word 2007
Index with Word 2007Index with Word 2007
Index with Word 2007
 
Microsoft word twitter-25
Microsoft word   twitter-25Microsoft word   twitter-25
Microsoft word twitter-25
 
การสืบค้นขั้นสูง
การสืบค้นขั้นสูงการสืบค้นขั้นสูง
การสืบค้นขั้นสูง
 
Personality test
Personality testPersonality test
Personality test
 
Function C
Function CFunction C
Function C
 
"เปิดโลกโอเพนซอร์ส" หนังสือรวม Open Source success story ของซิป้า
"เปิดโลกโอเพนซอร์ส" หนังสือรวม Open Source success story ของซิป้า"เปิดโลกโอเพนซอร์ส" หนังสือรวม Open Source success story ของซิป้า
"เปิดโลกโอเพนซอร์ส" หนังสือรวม Open Source success story ของซิป้า
 
แผนการจัดการเรียนรู้ที่ 5 โครงงานสร้างบทเรียนคอมพิวเตอร์ช่วยสอน
แผนการจัดการเรียนรู้ที่ 5 โครงงานสร้างบทเรียนคอมพิวเตอร์ช่วยสอนแผนการจัดการเรียนรู้ที่ 5 โครงงานสร้างบทเรียนคอมพิวเตอร์ช่วยสอน
แผนการจัดการเรียนรู้ที่ 5 โครงงานสร้างบทเรียนคอมพิวเตอร์ช่วยสอน
 
New Role for Librarian and Knowledge Repository
New Role for Librarian and Knowledge RepositoryNew Role for Librarian and Knowledge Repository
New Role for Librarian and Knowledge Repository
 
คู่มือโปรแกรม Book mark2551
คู่มือโปรแกรม Book mark2551  คู่มือโปรแกรม Book mark2551
คู่มือโปรแกรม Book mark2551
 
สารและสมบัติของสารและการจำแนก
สารและสมบัติของสารและการจำแนกสารและสมบัติของสารและการจำแนก
สารและสมบัติของสารและการจำแนก
 
ตรรกศาสตร์เบื้องต้น
ตรรกศาสตร์เบื้องต้นตรรกศาสตร์เบื้องต้น
ตรรกศาสตร์เบื้องต้น
 
อารยธรรมอียิปต์
อารยธรรมอียิปต์ อารยธรรมอียิปต์
อารยธรรมอียิปต์
 
จำนวนจริง
จำนวนจริงจำนวนจริง
จำนวนจริง
 
15ไฟฟ้าสถิต
15ไฟฟ้าสถิต15ไฟฟ้าสถิต
15ไฟฟ้าสถิต
 
Marketing
MarketingMarketing
Marketing
 

Viewers also liked

เอกสารประกอบการบรรยาย
เอกสารประกอบการบรรยายเอกสารประกอบการบรรยาย
เอกสารประกอบการบรรยายWarawut
 
04 connect-db-tools
 04 connect-db-tools 04 connect-db-tools
04 connect-db-toolsWarawut
 
ตัวอย่างการเขียนโปรแกรม โดยใช้ฟังก์ชัน
ตัวอย่างการเขียนโปรแกรม โดยใช้ฟังก์ชันตัวอย่างการเขียนโปรแกรม โดยใช้ฟังก์ชัน
ตัวอย่างการเขียนโปรแกรม โดยใช้ฟังก์ชันWarawut
 
Additional Information
Additional InformationAdditional Information
Additional InformationWarawut
 
Search Data
Search DataSearch Data
Search DataWarawut
 
Connect MySQL
Connect MySQLConnect MySQL
Connect MySQLWarawut
 
Chapter 2 Strategy & Information System
Chapter 2 Strategy & Information SystemChapter 2 Strategy & Information System
Chapter 2 Strategy & Information SystemWarawut
 
Structure Statement VB.NET 2005
Structure Statement VB.NET 2005Structure Statement VB.NET 2005
Structure Statement VB.NET 2005Warawut
 
การควบคุมภาษา C
การควบคุมภาษา Cการควบคุมภาษา C
การควบคุมภาษา CWarawut
 

Viewers also liked (9)

เอกสารประกอบการบรรยาย
เอกสารประกอบการบรรยายเอกสารประกอบการบรรยาย
เอกสารประกอบการบรรยาย
 
04 connect-db-tools
 04 connect-db-tools 04 connect-db-tools
04 connect-db-tools
 
ตัวอย่างการเขียนโปรแกรม โดยใช้ฟังก์ชัน
ตัวอย่างการเขียนโปรแกรม โดยใช้ฟังก์ชันตัวอย่างการเขียนโปรแกรม โดยใช้ฟังก์ชัน
ตัวอย่างการเขียนโปรแกรม โดยใช้ฟังก์ชัน
 
Additional Information
Additional InformationAdditional Information
Additional Information
 
Search Data
Search DataSearch Data
Search Data
 
Connect MySQL
Connect MySQLConnect MySQL
Connect MySQL
 
Chapter 2 Strategy & Information System
Chapter 2 Strategy & Information SystemChapter 2 Strategy & Information System
Chapter 2 Strategy & Information System
 
Structure Statement VB.NET 2005
Structure Statement VB.NET 2005Structure Statement VB.NET 2005
Structure Statement VB.NET 2005
 
การควบคุมภาษา C
การควบคุมภาษา Cการควบคุมภาษา C
การควบคุมภาษา C
 

Similar to Database Design

Ch01 introduction-web
Ch01 introduction-webCh01 introduction-web
Ch01 introduction-webWarawut
 
Login Administrator PrestaShop
Login Administrator PrestaShopLogin Administrator PrestaShop
Login Administrator PrestaShopWarawut
 
หลักการออกแบบและพัฒนาเว็บไซท์
หลักการออกแบบและพัฒนาเว็บไซท์หลักการออกแบบและพัฒนาเว็บไซท์
หลักการออกแบบและพัฒนาเว็บไซท์Warawut
 
การออกแบบและพัฒนาเว็บไซต์
การออกแบบและพัฒนาเว็บไซต์การออกแบบและพัฒนาเว็บไซต์
การออกแบบและพัฒนาเว็บไซต์Warawut
 
กลุ่ม3
กลุ่ม3กลุ่ม3
กลุ่ม3bannoi001
 
1 โลกและการเปลี่ยนแปลง
1 โลกและการเปลี่ยนแปลง1 โลกและการเปลี่ยนแปลง
1 โลกและการเปลี่ยนแปลงmuang82
 
การใช้งานโปรแกรม R เบื้องต้น
การใช้งานโปรแกรม R เบื้องต้นการใช้งานโปรแกรม R เบื้องต้น
การใช้งานโปรแกรม R เบื้องต้นKanda Runapongsa Saikaew
 
การจัดการเรียนการสอน
การจัดการเรียนการสอนการจัดการเรียนการสอน
การจัดการเรียนการสอนAnanpha Dear
 
การพัฒนาซอฟต์แวร์และวิเคราะห์การแก้ปัญหา
การพัฒนาซอฟต์แวร์และวิเคราะห์การแก้ปัญหาการพัฒนาซอฟต์แวร์และวิเคราะห์การแก้ปัญหา
การพัฒนาซอฟต์แวร์และวิเคราะห์การแก้ปัญหาWarawut
 
Management Information System 6
Management Information System 6Management Information System 6
Management Information System 6Warawut
 
Introduction to Computer
Introduction to ComputerIntroduction to Computer
Introduction to ComputerWarawut
 
Business Computer Project 1
Business Computer Project 1Business Computer Project 1
Business Computer Project 1Warawut
 
Session and Cookie
Session and CookieSession and Cookie
Session and CookieWarawut
 
หน่วยที่ 1 บทนำ
หน่วยที่ 1 บทนำหน่วยที่ 1 บทนำ
หน่วยที่ 1 บทนำkrusarawut
 
Lesson 1 Intro
Lesson 1 IntroLesson 1 Intro
Lesson 1 Introkrusarawut
 
การสร้าง Selection ในรูปแบบต่าง ๆ ที่มา http://www.skr.ac.th/~jiraphinya/pho...
การสร้าง  Selection ในรูปแบบต่าง ๆ ที่มา http://www.skr.ac.th/~jiraphinya/pho...การสร้าง  Selection ในรูปแบบต่าง ๆ ที่มา http://www.skr.ac.th/~jiraphinya/pho...
การสร้าง Selection ในรูปแบบต่าง ๆ ที่มา http://www.skr.ac.th/~jiraphinya/pho...เชาวลักษณ์ ชาวงษ์
 
Control desk for boiler at erawan sugar factory
Control desk for boiler at erawan sugar factoryControl desk for boiler at erawan sugar factory
Control desk for boiler at erawan sugar factoryPhemakorn Khoonsri
 

Similar to Database Design (20)

Ch01 introduction-web
Ch01 introduction-webCh01 introduction-web
Ch01 introduction-web
 
Login Administrator PrestaShop
Login Administrator PrestaShopLogin Administrator PrestaShop
Login Administrator PrestaShop
 
หลักการออกแบบและพัฒนาเว็บไซท์
หลักการออกแบบและพัฒนาเว็บไซท์หลักการออกแบบและพัฒนาเว็บไซท์
หลักการออกแบบและพัฒนาเว็บไซท์
 
การออกแบบและพัฒนาเว็บไซต์
การออกแบบและพัฒนาเว็บไซต์การออกแบบและพัฒนาเว็บไซต์
การออกแบบและพัฒนาเว็บไซต์
 
กลุ่ม3
กลุ่ม3กลุ่ม3
กลุ่ม3
 
1 โลกและการเปลี่ยนแปลง
1 โลกและการเปลี่ยนแปลง1 โลกและการเปลี่ยนแปลง
1 โลกและการเปลี่ยนแปลง
 
การใช้งานโปรแกรม R เบื้องต้น
การใช้งานโปรแกรม R เบื้องต้นการใช้งานโปรแกรม R เบื้องต้น
การใช้งานโปรแกรม R เบื้องต้น
 
การจัดการเรียนการสอน
การจัดการเรียนการสอนการจัดการเรียนการสอน
การจัดการเรียนการสอน
 
การพัฒนาซอฟต์แวร์และวิเคราะห์การแก้ปัญหา
การพัฒนาซอฟต์แวร์และวิเคราะห์การแก้ปัญหาการพัฒนาซอฟต์แวร์และวิเคราะห์การแก้ปัญหา
การพัฒนาซอฟต์แวร์และวิเคราะห์การแก้ปัญหา
 
ICT Computer Market 2008 V2
ICT Computer Market 2008 V2ICT Computer Market 2008 V2
ICT Computer Market 2008 V2
 
Management Information System 6
Management Information System 6Management Information System 6
Management Information System 6
 
Introduction to Computer
Introduction to ComputerIntroduction to Computer
Introduction to Computer
 
Business Computer Project 1
Business Computer Project 1Business Computer Project 1
Business Computer Project 1
 
Session and Cookie
Session and CookieSession and Cookie
Session and Cookie
 
หน่วยที่ 1 บทนำ
หน่วยที่ 1 บทนำหน่วยที่ 1 บทนำ
หน่วยที่ 1 บทนำ
 
Thailand-ict-market-2011-and-outlook-2012
Thailand-ict-market-2011-and-outlook-2012Thailand-ict-market-2011-and-outlook-2012
Thailand-ict-market-2011-and-outlook-2012
 
Lesson 1 Intro
Lesson 1 IntroLesson 1 Intro
Lesson 1 Intro
 
Catalog Paints CCSThai 2010
Catalog Paints CCSThai 2010Catalog Paints CCSThai 2010
Catalog Paints CCSThai 2010
 
การสร้าง Selection ในรูปแบบต่าง ๆ ที่มา http://www.skr.ac.th/~jiraphinya/pho...
การสร้าง  Selection ในรูปแบบต่าง ๆ ที่มา http://www.skr.ac.th/~jiraphinya/pho...การสร้าง  Selection ในรูปแบบต่าง ๆ ที่มา http://www.skr.ac.th/~jiraphinya/pho...
การสร้าง Selection ในรูปแบบต่าง ๆ ที่มา http://www.skr.ac.th/~jiraphinya/pho...
 
Control desk for boiler at erawan sugar factory
Control desk for boiler at erawan sugar factoryControl desk for boiler at erawan sugar factory
Control desk for boiler at erawan sugar factory
 

More from Warawut

Database design
Database designDatabase design
Database designWarawut
 
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 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
 
Object-Oriented Programming 4
Object-Oriented Programming 4Object-Oriented Programming 4
Object-Oriented Programming 4Warawut
 
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
 
Upload File
Upload FileUpload File
Upload FileWarawut
 
Form Validation
Form ValidationForm Validation
Form ValidationWarawut
 

More from Warawut (20)

Database design
Database designDatabase design
Database design
 
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 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
 
Object-Oriented Programming 4
Object-Oriented Programming 4Object-Oriented Programming 4
Object-Oriented Programming 4
 
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
 
Upload File
Upload FileUpload File
Upload File
 
Login
LoginLogin
Login
 
Form Validation
Form ValidationForm Validation
Form Validation
 

Recently uploaded

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
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
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
 
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
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
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
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
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
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 

Recently uploaded (20)

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
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
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
 
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
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
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
 
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
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
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 ...
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 

Database Design

  • 1. Mr.Warawut Khangkhan Facebook: Facebook: http://www.facebook.com/AjWarawut Twitter: http://twitter.com/awarawut E-Mail: awarawut@hotmail.com Mobile: 089-461-9591 089-461- 5ก ก F (Database Design)
  • 2. กF ก F F F ก F กF ก ก F F ก ก F F F F F F F ก F ก ก F FF ก Mr.Warawut Khangkhan Chapter 05 Database Design 2
  • 3. F ก ก F (Entity) F (Attribute) F (Relationships) Mr.Warawut Khangkhan Chapter 05 Database Design 3
  • 4. (Entity) F F F F F ก F F ก ก ก F ก F ก ก F ก F กF F ก F ก F F (Customers) (Orders) (Products) Mr.Warawut Khangkhan Chapter 05 Database Design 4
  • 5. F (Attribute) F ก กF F F ก F (Customers) กF กF FกF F( ) F F Mr.Warawut Khangkhan Chapter 05 Database Design 5
  • 6. F (Attribute) (Orders) F (Products) F F F F F F F กF F F F F F F F F Mr.Warawut Khangkhan Chapter 05 Database Design 6
  • 7. F (Relationships) ก F (Customers) (Orders) F กF 1 N F กF F F FกF F F F กF F F F F Mr.Warawut Khangkhan Chapter 05 Database Design 7
  • 8. F F (Relational Database) ก ก F (Customers) (Orders) F กF 1 N กF F F FกF F F F ก F F F กF F F F ก F F Mr.Warawut Khangkhan Chapter 05 Database Design 8
  • 9. F F F F (Field) / F (Attribute) F F ก กก F ก F (Record) / (Tuple) ก F F ก (Table) / (Relation) ก F F ก Mr.Warawut Khangkhan Chapter 05 Database Design 9
  • 10. F F F Field ก F F ก F F กF 003 P&S STORE 1 F 159 21 ( ก) ก . 015 Happy Shop 29 . F F ก Record 181 The Book Shop Asia Hotel 296 . ก 213 P'S Line 2675 F9 F .95 ก ก . 008 The Bookseller 428 Rama I Road, Siam Square Bangkok. Mr.Warawut Khangkhan Chapter 05 Database Design 10
  • 11. F (Relationships) F F (One-to-One Relationships) F FกF (One-to-Many Relationships) F กF FกF (Many-to-Many Relationships) Mr.Warawut Khangkhan Chapter 05 Database Design 11
  • 12. One-to- One-to-One Relationships (1:1) F F F ก F 1 F Fก ก F 1 F ก F F ก 1 F F F F F 1:1 Mr.Warawut Khangkhan Chapter 05 Database Design 12
  • 13. F F F F F F ( ) 1:1 0005 0100 F F F 90 219.63 219.63 Yes Yes 0125 SALES MANAGER FACTOMATIC 700.93 No 0051 SECRETS OF STARGATE 1,842.99 No 0010 US ATLAS 540.19 No 0007 VIDEO CONFERENCING CARD-FLY VIDEO OF SOUND 369.16 Yes 0008 กF F Panasonic Model VHS F NV-VX3 260.00 Yes 0023 JAPANESE 1, LIYC 278.00 No 0055 JAPANESE 2, LIYC 278.00 No 1 F F F F 0005 F F 90 400 0100 F 155 0125 SALES MANAGER FACTOMATIC 169 0051 SECRETS OF STARGATE 197 0010 US ATLAS 159 0007 VIDEO CONFERENCING CARD-FLY VIDEO OF SOUND 205 0008 กF F Panasonic Model VHS F NV-VX3 177 Mr.Warawut Khangkhan 0023 Chapter 05 Database Design JAPANESE 1, LIYC 326 13 1 159 0055 JAPANESE 2, LIYC
  • 14. One-to- One-to-One Relationships (1:1) F 1:1 F F F F ก ก F F ก F F F ก F ก F Mr.Warawut Khangkhan Chapter 05 Database Design 14
  • 15. One-To- One-To-Many Relationships (1:N) (1 F F F F F F 1 F Fก F 2 F กก F ก F กF F F F F F กF F Mr.Warawut Khangkhan Chapter 05 Database Design 15
  • 16. กF 1:N กF 003 F กF P&S STORE F ก F 1 F 159 21 ( ก) ก . 1 015 Happy Shop 29 . F F ก 181 The Book Shop Asia Hotel 296 . ก 213 P'S Line 2675 F9 F .95 ก ก . 008 The Bookseller 428 Rama I Road, Siam Square Bangkok. F N ก F กF F F F F F F F (%) 10258 015 21/10/xx 28/10/xx 0005 8 25.00% 0100 8 0.00% N 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%
  • 17. Many-to- Many-to-Many Relationships (M:N) F F F FF ก F F F F F F Many-to-One ก 2 F Many-to-Many Relationships Mr.Warawut Khangkhan Chapter 05 Database Design 17
  • 18. Many-to- Many-to-Many Relationships (M:N) F F กF F F กF 1 F ก ก F F F F ก F F Fก F Many-to-Many Mr.Warawut Khangkhan Chapter 05 Database Design 18
  • 19. F N ก F F F F F (%) M:N N 10258 0005 8 25.00% F 10258 0100 N 8 0.00% N ก F ก F F F F 10258 0125 15 0.00% 1 10258 015 21/10/xx 28/10/xx 10265 0005 31 0.00% 10265 181 21/10/xx 27/10/xx 10265 0010N 15 0.00% 10278 015 24/10/xx 3/11/xx 10278 0007 16 0.00% 10278 0008 31 25.00% 10278 0023 4 0.00% F F F F F F ( ) 1 0005 F F 90 219.63 Yes 400 0100 F 219.63 Yes 155 0125 SALES MANAGER FACTOMATIC 700.93 No 169 0051 SECRETS OF STARGATE 1,842.99 No 197 0010 US ATLAS 540.19 No 159 0007 VIDEO CONFERENCING CARD-FLY VIDEO OF SOUND 369.16 Yes 205 0008 กF F Panasonic Model VHS F NV-VX3 260.00 Yes 177 0023 JAPANESE 1, LIYC Chapter 05 Database Design 278.00 No 326 0055 JAPANESE 2, LIYC 278.00 No 159
  • 20. F F F Primary Key: PK ( F ก) Candidate Key ( F F F ) Composite Key Foreign Key: FK Mr.Warawut Khangkhan Chapter 05 Database Design 20
  • 21. Primary Key: PK F F F ก F F F F Primary Key F Mr.Warawut Khangkhan Chapter 05 Database Design 21
  • 22. Candidate Key F F ก F Primary Key F Fก F ก F F ก F ก F F ก F F F F ก FF F Mr.Warawut Khangkhan Chapter 05 Database Design 22
  • 23. Composite Key F F F F F F F ก Primary Key F F ก ก F Composite Key Mr.Warawut Khangkhan Chapter 05 Database Design 23
  • 24. Foreign Key F ( Many) Fก F Primary Key ก ( One) 2 F One-to-Many F ก Mr.Warawut Khangkhan Chapter 05 Database Design 24
  • 25. F ก F F F F F (%) N 10258 0005 8 25.00% 1 F 10258 0100 8 0.00% ก F กF F F F 10258 0125 15 0.00% 10258 015 21/10/xx 28/10/xx 10265 0005 31 0.00% 10265 181 21/10/xx 27/10/xx 10265 0010 15 0.00% 10278 015 24/10/xx 3/11/xx 10278 0007 16 0.00% 10278 0008 31 25.00% Primary Key 10278 0023 4 0.00% Foreign Key Composite Key Mr.Warawut Khangkhan Chapter 05 Database Design 25
  • 26. ก F ก ก F F (Application Database) F ก F Mr.Warawut Khangkhan Chapter 05 Database Design 26
  • 27. F ก ก F F F F ก ก FF F F กF F F ก( F ก F ก) ก ก ก F F F F F F F F F ก Mr.Warawut Khangkhan Chapter 05 Database Design 27
  • 28. ก F 1. ก ก F 2. ก F ก F F 3. ก F F F 4. ก F F F ก ก Normalization Mr.Warawut Khangkhan Chapter 05 Database Design 28
  • 29. Normalization F ก F F F ก F ก กF Fก F ก Normalization F F F F F กF F Fก กF F FF Fก F F ก F F F F F Mr.Warawut Khangkhan Chapter 05 Database Design 29
  • 30. F F ก Normalization 0NF F F กF ก (Repeating Group) 1NF F F F F F F ก F F F 2NF F F F ก F F F PK 3NF Candidate Key F F ก Fก ก F (Multivalve Dependency) 4NF Mr.Warawut Khangkhan Chapter 05 Database Design 30
  • 31. ก F 1 (First Normal Form) F F F F ก F F F ก F 1 F F ก ก F F ก ก F F Mr.Warawut Khangkhan Chapter 05 Database Design 31
  • 32. ก 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 กก F F ก F F Mr.Warawut Khangkhan Chapter 05 Database Design 32
  • 33. ก F 3 (Third Normal Form) F ก F 2 F F F ก F F F F ก F F F F F ก F 3 F ก ก F ก F ก F F ก F F F F Mr.Warawut Khangkhan Chapter 05 Database Design 33
  • 34. ก F 4 (Fourth Normal Form) F ก F 4 F F ก Fก ก F (Multivalve Dependency) F Many-to-Many ก F ก FB F FA ก Fก กก F FC F F ก F 4 F ก F ก F F ก F ก F Mr.Warawut Khangkhan Chapter 05 Database Design 34
  • 35. E-R Diagram Mr.Warawut Khangkhan Chapter 05 Database Design 35