SlideShare a Scribd company logo
1 of 36
Download to read offline
F   (Database
Design)            .      F
F              F           F                             ˈ F           F
                F
                                    F                               F
                                                      F
            F           F               ˈ
                            F                     F         F F         F
                                                          F FF
K.Warawut                                   Database Design                     2
F                                   F
            (Entity)
                F (Attribute)
                   F (Relationships)




K.Warawut                 Database Design       3
(Entity)
      ˈ          F                                    F
            F        F F        F                 F
                      F                   F                                F
                           F                  F           F            F
                 F                                          F
          (Customers)               (Orders)          (Products)


K.Warawut                      Database Design                     4
F (Attribute)
      ˈ F
                     F                F              F
            F (Customers)
                      F
                    F
                F F                             F(   )
                        F
                          F
K.Warawut                     Database Design            5
F (Attribute)
                                       F                             (Orders)

                F       F      F                                                  F
            F                      F                             F                F
                    F                                                 F
                                                                          F
     F                                                                        F
                                                             F
K.Warawut                                  Database Design                            6
F (Attribute)
                            F                                         F (Products)
                    F                   F                                        F
     F      F                               F                                  F
                F                               F                         F F
                                    F                                      F           F
                                                                             F
                        F                                                            F
                                                                                   F
K.Warawut                                           Database Design                        7
F (Relationships)
                          F (Customers)                 (Orders)
                    F               F     1 N
            F                     F                                  F
                F             F F                   F                F
                                      F                  F
                                        F                    F
                                                                 F
                                                F
K.Warawut                  Database Design                               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
K.Warawut                 Database Design                            9
F      F                F
      ʽ F (Field) /                 F (Attribute)
        F F                                     F
             F (Record) /           (Tuple)
         ˈ            ʽ F              ʽ F
              (Table) /           (Relation)
           ˈ              F                  F

K.Warawut                     Database Design       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.




K.Warawut                             Database Design                               11
F (Relationships)
                 F   F          (One-to-One Relationships)
               F               F F (One-to-Many
  Relationships)
                 F       F F           F (Many-to-Many
  Relationships)


K.Warawut                Database Design                 12
One-to-One Relationships (1:1)
One-to-
      ˈ                   F                         F       F
            F 1       F                                                           F
               F 1            F                                       F       F
                     1 F F                                                F
                 F                                      F       1:1



K.Warawut                         Database Design                                     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

K.Warawut                           0023                         JAPANESE 1, LIYC Design
                                                                      Database                                                                          326   14
                       1                                                                                                                                159
                                    0055                         JAPANESE 2, LIYC
One-to-One Relationships (1:1)
One-to-
                  F       1:1                        ˈ
       F
                      F    F                     F
                                   F   F                 F ˈ
            F F                F
                                       ˈ F

K.Warawut                      Database Design                 15
One-To-Many Relationships (1:N)
One-To-                   (1
      ˈ                         F                         F
            F
                    F                         ˈ                       F               F 1
                F                                             F                             F 2
                F                       F                                     F        F
                        F           F                                     F       F               F
                            F                                     F
K.Warawut                                   Database Design                                  16
F

 1:N 003              F    F     F
                          P&S STORE
                                                              F
                                                              1
                                                                  F
                                                                                                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%
K.Warawut                                                 Database Design                                                                     17
                                                                                                         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



K.Warawut                 Database Design                      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



K.Warawut                        Database Design                   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

K.Warawut   0023                JAPANESE 1, LIYC                                     Database Design                          278.00          No                     326
                                                                                                                                                                      20
            0055                JAPANESE 2, LIYC                                                                              278.00          No                     159
F            F          F
  Primary Key: PK ( F )
  Candiate Key ( F F F )
  Composite Key
  Foreign Key: FK



K.Warawut          Database Design       21
Primary Key: PK
            ˈ ʽ F   F     F                     F     F
                        F ʽ F           ˈ Primary Key ˈ
                                   F




K.Warawut                     Database Design             22
Candidate Key
          ˈ ʽ F                ʽ F                     F
                    ˈ Primary Key      F F ˈ       F
      F                   ˈ F      F           F
      F           F F F ˈ F          ˈ FF F




K.Warawut                 Database Design                  23
Composite Key
                ʽ F F F F           F F
     ʽ F           ˈ Primary Key ʽ F F
         F Composite Key




K.Warawut           Database Design       24
Foreign Key
      ˈ ʽ F                 ( ˆˉ Many)
              F ʽ F       ˈ Primary Key
      ( ˆˉ One)                 2         F
  One-to-Many F




K.Warawut         Database Design             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




   K.Warawut                                                 Database Design                                          26
F
    ˈ                    F                 F
  (Application Database)
      F
        F




K.Warawut            Database Design           27
F                                                  F
                         F           F                         F
                                         ˈ                                 FF

     F           F                                 F                                        F
         F           (           F                     F           )
                                                           F           F            F F F
                     F
             F                                F F
K.Warawut                                    Database Design                                    28
F
1.                                                      F
2.               F                                F F
3.                           F          F                       F
4.                                  F         F                     F
            Normalization


K.Warawut                   Database Design                             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
K.Warawut                                          Database Design                                               30
F F
 Normalization                               Normalization
                                         F F F
                                        (Repeating Group)
                                                                                1st Normal Form
                           F    F                        F       F F F
2nd Normal Form                          F           F                   F
                                    F        F                     F
 4th Normal Form                                 F           F F PK          Candidate Key

                  F     F          F           F
                      (Multivalued Dependency)                                  3rd Normal Form
  K.Warawut                             Database Design                                      31
F 1 (First Normal Form)
            F       F       F                             F             F
                                F        F            F         1 F F
                F       F                    ˈ                F    F




K.Warawut                           Database Design                         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
K.Warawut                                      Database Design                                  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

K.Warawut                        Database Design                                      34
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
K.Warawut              Database Design           35
E-R Diagram




K.Warawut     Database Design   36

More Related Content

What's hot

1 โลกและการเปลี่ยนแปลง
1 โลกและการเปลี่ยนแปลง1 โลกและการเปลี่ยนแปลง
1 โลกและการเปลี่ยนแปลง
muang82
 
การใช้งานโปรแกรม R เบื้องต้น
การใช้งานโปรแกรม R เบื้องต้นการใช้งานโปรแกรม R เบื้องต้น
การใช้งานโปรแกรม R เบื้องต้น
Kanda Runapongsa Saikaew
 
ธรรมชาติของสิ่งมีชีวิต
ธรรมชาติของสิ่งมีชีวิตธรรมชาติของสิ่งมีชีวิต
ธรรมชาติของสิ่งมีชีวิต
Thanyamon Chat.
 
ระบบน้ำเหลืองกับภูมิคุ้มกัน(Hant out)
ระบบน้ำเหลืองกับภูมิคุ้มกัน(Hant out)ระบบน้ำเหลืองกับภูมิคุ้มกัน(Hant out)
ระบบน้ำเหลืองกับภูมิคุ้มกัน(Hant out)
Thanyamon Chat.
 
การขับถ่ายของสัตว์
การขับถ่ายของสัตว์การขับถ่ายของสัตว์
การขับถ่ายของสัตว์
Thanyamon Chat.
 
ระบบน้ำเหลืองกับภูมิคุ้มกัน
ระบบน้ำเหลืองกับภูมิคุ้มกันระบบน้ำเหลืองกับภูมิคุ้มกัน
ระบบน้ำเหลืองกับภูมิคุ้มกัน
Thanyamon Chat.
 
หน่วยที่ 1 บทนำ
หน่วยที่ 1 บทนำหน่วยที่ 1 บทนำ
หน่วยที่ 1 บทนำ
krusarawut
 
ระบบหมุนเวียน
ระบบหมุนเวียนระบบหมุนเวียน
ระบบหมุนเวียน
Thanyamon Chat.
 
Lesson 1 Intro
Lesson 1 IntroLesson 1 Intro
Lesson 1 Intro
krusarawut
 
แผนการจัดการเรียนรู้ที่ 8 คุณธรรม จริยธรรมในการใช้เทคโนโลยีสารสนเทศ
แผนการจัดการเรียนรู้ที่ 8 คุณธรรม จริยธรรมในการใช้เทคโนโลยีสารสนเทศแผนการจัดการเรียนรู้ที่ 8 คุณธรรม จริยธรรมในการใช้เทคโนโลยีสารสนเทศ
แผนการจัดการเรียนรู้ที่ 8 คุณธรรม จริยธรรมในการใช้เทคโนโลยีสารสนเทศ
Nattapon
 
การสืบค้นขั้นสูง
การสืบค้นขั้นสูงการสืบค้นขั้นสูง
การสืบค้นขั้นสูง
fangwittayayon
 
นำเสนออาหาร
นำเสนออาหารนำเสนออาหาร
นำเสนออาหาร
nonglakkrubom
 
ระบบหายใจกับการรักษาดุลยภาพของร่างกาย(มนุษย์)
ระบบหายใจกับการรักษาดุลยภาพของร่างกาย(มนุษย์)ระบบหายใจกับการรักษาดุลยภาพของร่างกาย(มนุษย์)
ระบบหายใจกับการรักษาดุลยภาพของร่างกาย(มนุษย์)
Thanyamon Chat.
 
สารและสมบัติของสารและการจำแนก
สารและสมบัติของสารและการจำแนกสารและสมบัติของสารและการจำแนก
สารและสมบัติของสารและการจำแนก
maechai21
 

What's hot (20)

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
 
1 โลกและการเปลี่ยนแปลง
1 โลกและการเปลี่ยนแปลง1 โลกและการเปลี่ยนแปลง
1 โลกและการเปลี่ยนแปลง
 
สร้างสรรค์ผลงานด้วยโปรแกรม 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/~...
 
การใช้งานโปรแกรม R เบื้องต้น
การใช้งานโปรแกรม R เบื้องต้นการใช้งานโปรแกรม R เบื้องต้น
การใช้งานโปรแกรม R เบื้องต้น
 
Serial controldoc190154
Serial controldoc190154Serial controldoc190154
Serial controldoc190154
 
ธรรมชาติของสิ่งมีชีวิต
ธรรมชาติของสิ่งมีชีวิตธรรมชาติของสิ่งมีชีวิต
ธรรมชาติของสิ่งมีชีวิต
 
ระบบน้ำเหลืองกับภูมิคุ้มกัน(Hant out)
ระบบน้ำเหลืองกับภูมิคุ้มกัน(Hant out)ระบบน้ำเหลืองกับภูมิคุ้มกัน(Hant out)
ระบบน้ำเหลืองกับภูมิคุ้มกัน(Hant out)
 
การขับถ่ายของสัตว์
การขับถ่ายของสัตว์การขับถ่ายของสัตว์
การขับถ่ายของสัตว์
 
ระบบน้ำเหลืองกับภูมิคุ้มกัน
ระบบน้ำเหลืองกับภูมิคุ้มกันระบบน้ำเหลืองกับภูมิคุ้มกัน
ระบบน้ำเหลืองกับภูมิคุ้มกัน
 
หน่วยที่ 1 บทนำ
หน่วยที่ 1 บทนำหน่วยที่ 1 บทนำ
หน่วยที่ 1 บทนำ
 
ระบบหมุนเวียน
ระบบหมุนเวียนระบบหมุนเวียน
ระบบหมุนเวียน
 
พื้นฐานภาษาสำหรับพัฒนาเว็บไซต์
พื้นฐานภาษาสำหรับพัฒนาเว็บไซต์พื้นฐานภาษาสำหรับพัฒนาเว็บไซต์
พื้นฐานภาษาสำหรับพัฒนาเว็บไซต์
 
Ch01 introduction-web
Ch01 introduction-webCh01 introduction-web
Ch01 introduction-web
 
Lesson 1 Intro
Lesson 1 IntroLesson 1 Intro
Lesson 1 Intro
 
พื้นฐานการออกแบบโปรแกรม
พื้นฐานการออกแบบโปรแกรมพื้นฐานการออกแบบโปรแกรม
พื้นฐานการออกแบบโปรแกรม
 
แผนการจัดการเรียนรู้ที่ 8 คุณธรรม จริยธรรมในการใช้เทคโนโลยีสารสนเทศ
แผนการจัดการเรียนรู้ที่ 8 คุณธรรม จริยธรรมในการใช้เทคโนโลยีสารสนเทศแผนการจัดการเรียนรู้ที่ 8 คุณธรรม จริยธรรมในการใช้เทคโนโลยีสารสนเทศ
แผนการจัดการเรียนรู้ที่ 8 คุณธรรม จริยธรรมในการใช้เทคโนโลยีสารสนเทศ
 
การสืบค้นขั้นสูง
การสืบค้นขั้นสูงการสืบค้นขั้นสูง
การสืบค้นขั้นสูง
 
นำเสนออาหาร
นำเสนออาหารนำเสนออาหาร
นำเสนออาหาร
 
ระบบหายใจกับการรักษาดุลยภาพของร่างกาย(มนุษย์)
ระบบหายใจกับการรักษาดุลยภาพของร่างกาย(มนุษย์)ระบบหายใจกับการรักษาดุลยภาพของร่างกาย(มนุษย์)
ระบบหายใจกับการรักษาดุลยภาพของร่างกาย(มนุษย์)
 
สารและสมบัติของสารและการจำแนก
สารและสมบัติของสารและการจำแนกสารและสมบัติของสารและการจำแนก
สารและสมบัติของสารและการจำแนก
 

Viewers also liked (11)

Business Computer Project 2
Business Computer Project 2Business Computer Project 2
Business Computer Project 2
 
Management Information System 3
Management Information System 3Management Information System 3
Management Information System 3
 
Object-Oriented Programming 10
Object-Oriented Programming 10Object-Oriented Programming 10
Object-Oriented Programming 10
 
Object-Oriented Programming 5
Object-Oriented Programming 5Object-Oriented Programming 5
Object-Oriented Programming 5
 
Management Information System 4
Management Information System 4Management Information System 4
Management Information System 4
 
Object-Oriented Programming 9
Object-Oriented Programming 9Object-Oriented Programming 9
Object-Oriented Programming 9
 
Chapter 2 Strategy & Information System
Chapter 2 Strategy & Information SystemChapter 2 Strategy & Information System
Chapter 2 Strategy & Information System
 
การใช้ตัวแปรอาร์เรย์ (Array) ใน VB.NET 2005 Express Editor
การใช้ตัวแปรอาร์เรย์ (Array) ใน VB.NET 2005 Express Editorการใช้ตัวแปรอาร์เรย์ (Array) ใน VB.NET 2005 Express Editor
การใช้ตัวแปรอาร์เรย์ (Array) ใน VB.NET 2005 Express Editor
 
Database design
Database designDatabase design
Database design
 
Management Information System 5
Management Information System 5Management Information System 5
Management Information System 5
 
Management Information System 6
Management Information System 6Management Information System 6
Management Information System 6
 

Similar to Business Computer Project 4

กลุ่ม3
กลุ่ม3กลุ่ม3
กลุ่ม3
bannoi001
 
K connect ธุรกิจครอบครัวแดนมังกร
K connect ธุรกิจครอบครัวแดนมังกร K connect ธุรกิจครอบครัวแดนมังกร
K connect ธุรกิจครอบครัวแดนมังกร
DrDanai Thienphut
 
เซลล์ของสิ่งมีชีวิต
เซลล์ของสิ่งมีชีวิตเซลล์ของสิ่งมีชีวิต
เซลล์ของสิ่งมีชีวิต
Thanyamon Chat.
 
คู่มือโปรแกรม Book mark2551
คู่มือโปรแกรม Book mark2551  คู่มือโปรแกรม Book mark2551
คู่มือโปรแกรม Book mark2551
Narongchai Wanmanee
 
เกี่ยวกับอาเซียน
เกี่ยวกับอาเซียนเกี่ยวกับอาเซียน
เกี่ยวกับอาเซียน
Nuanprang Suripa
 
เครื่องใช่ไฟฟ้า
เครื่องใช่ไฟฟ้าเครื่องใช่ไฟฟ้า
เครื่องใช่ไฟฟ้า
Chanukid Chaisri
 
อารยธรรมอียิปต์
อารยธรรมอียิปต์ อารยธรรมอียิปต์
อารยธรรมอียิปต์
Pikcolo Pik
 
"เปิดโลกโอเพนซอร์ส" หนังสือรวม Open Source success story ของซิป้า
"เปิดโลกโอเพนซอร์ส" หนังสือรวม Open Source success story ของซิป้า"เปิดโลกโอเพนซอร์ส" หนังสือรวม Open Source success story ของซิป้า
"เปิดโลกโอเพนซอร์ส" หนังสือรวม Open Source success story ของซิป้า
Osdev
 
ระบบสืบพันธุ์
ระบบสืบพันธุ์ระบบสืบพันธุ์
ระบบสืบพันธุ์
krulam007
 
การคัดออก
การคัดออกการคัดออก
การคัดออก
AkarimA SoommarT
 

Similar to Business Computer Project 4 (20)

กลุ่ม3
กลุ่ม3กลุ่ม3
กลุ่ม3
 
การออกแบบและพัฒนาเว็บไซต์
การออกแบบและพัฒนาเว็บไซต์การออกแบบและพัฒนาเว็บไซต์
การออกแบบและพัฒนาเว็บไซต์
 
K connect ธุรกิจครอบครัวแดนมังกร
K connect ธุรกิจครอบครัวแดนมังกร K connect ธุรกิจครอบครัวแดนมังกร
K connect ธุรกิจครอบครัวแดนมังกร
 
2
22
2
 
Story board
Story boardStory board
Story board
 
เซลล์ของสิ่งมีชีวิต
เซลล์ของสิ่งมีชีวิตเซลล์ของสิ่งมีชีวิต
เซลล์ของสิ่งมีชีวิต
 
Login Administrator PrestaShop
Login Administrator PrestaShopLogin Administrator PrestaShop
Login Administrator PrestaShop
 
Marketing
MarketingMarketing
Marketing
 
คู่มือโปรแกรม Book mark2551
คู่มือโปรแกรม Book mark2551  คู่มือโปรแกรม Book mark2551
คู่มือโปรแกรม Book mark2551
 
เกี่ยวกับอาเซียน
เกี่ยวกับอาเซียนเกี่ยวกับอาเซียน
เกี่ยวกับอาเซียน
 
Compe
CompeCompe
Compe
 
Compe
CompeCompe
Compe
 
เครื่องใช่ไฟฟ้า
เครื่องใช่ไฟฟ้าเครื่องใช่ไฟฟ้า
เครื่องใช่ไฟฟ้า
 
อารยธรรมอียิปต์
อารยธรรมอียิปต์ อารยธรรมอียิปต์
อารยธรรมอียิปต์
 
"เปิดโลกโอเพนซอร์ส" หนังสือรวม Open Source success story ของซิป้า
"เปิดโลกโอเพนซอร์ส" หนังสือรวม Open Source success story ของซิป้า"เปิดโลกโอเพนซอร์ส" หนังสือรวม Open Source success story ของซิป้า
"เปิดโลกโอเพนซอร์ส" หนังสือรวม Open Source success story ของซิป้า
 
Volume 4 issue 60 april 6 12, 2011 a4-
Volume 4 issue 60 april 6 12, 2011 a4-Volume 4 issue 60 april 6 12, 2011 a4-
Volume 4 issue 60 april 6 12, 2011 a4-
 
ระบบสืบพันธุ์
ระบบสืบพันธุ์ระบบสืบพันธุ์
ระบบสืบพันธุ์
 
ดิน(สมบูรณ์)
ดิน(สมบูรณ์)ดิน(สมบูรณ์)
ดิน(สมบูรณ์)
 
การคัดออก
การคัดออกการคัดออก
การคัดออก
 
การคัดออก
การคัดออกการคัดออก
การคัดออก
 

More from 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
 
Object-Oriented Programming 1
Object-Oriented Programming 1Object-Oriented Programming 1
Object-Oriented Programming 1
Warawut
 

More from Warawut (20)

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
 
Business Computer Project 3
Business Computer Project 3Business Computer Project 3
Business Computer Project 3
 
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
 
Upload File
Upload FileUpload File
Upload File
 
Login
LoginLogin
Login
 
Session and Cookie
Session and CookieSession and Cookie
Session and Cookie
 
Form Validation
Form ValidationForm Validation
Form Validation
 
Tips & Track
Tips & TrackTips & Track
Tips & Track
 
Edit & Delete Data
Edit & Delete DataEdit & Delete Data
Edit & Delete Data
 
Search Data
Search DataSearch Data
Search Data
 
Retrieve Data
Retrieve DataRetrieve Data
Retrieve Data
 
Additional Information
Additional InformationAdditional Information
Additional Information
 
Connect MySQL
Connect MySQLConnect MySQL
Connect MySQL
 

Recently uploaded

Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
MateoGardella
 
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
QucHHunhnh
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
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
heathfieldcps1
 

Recently uploaded (20)

SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
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
 
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
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
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
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
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
 

Business Computer Project 4

  • 1. F (Database Design) . F
  • 2. F F F ˈ F F F F F F F F ˈ F F F F F F FF K.Warawut Database Design 2
  • 3. F F (Entity) F (Attribute) F (Relationships) K.Warawut Database Design 3
  • 4. (Entity) ˈ F F F F F F F F F F F F F F F F (Customers) (Orders) (Products) K.Warawut Database Design 4
  • 5. F (Attribute) ˈ F F F F F (Customers) F F F F F( ) F F K.Warawut Database Design 5
  • 6. F (Attribute) F (Orders) F F F F F F F F F F F F F F K.Warawut Database Design 6
  • 7. F (Attribute) F F (Products) F F F F F F F F F F F F F F F F F F K.Warawut Database Design 7
  • 8. F (Relationships) F (Customers) (Orders) F F 1 N F F F F F F F F F F F F F F K.Warawut Database Design 8
  • 9. 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 K.Warawut Database Design 9
  • 10. F F F ʽ F (Field) / F (Attribute) F F F F (Record) / (Tuple) ˈ ʽ F ʽ F (Table) / (Relation) ˈ F F K.Warawut Database Design 10
  • 11. 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. K.Warawut Database Design 11
  • 12. F (Relationships) F F (One-to-One Relationships) F F F (One-to-Many Relationships) F F F F (Many-to-Many Relationships) K.Warawut Database Design 12
  • 13. One-to-One Relationships (1:1) One-to- ˈ F F F F 1 F F F 1 F F F 1 F F F F F 1:1 K.Warawut Database Design 13
  • 14. 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 K.Warawut 0023 JAPANESE 1, LIYC Design Database 326 14 1 159 0055 JAPANESE 2, LIYC
  • 15. One-to-One Relationships (1:1) One-to- F 1:1 ˈ F F F F F F F ˈ F F F ˈ F K.Warawut Database Design 15
  • 16. One-To-Many Relationships (1:N) One-To- (1 ˈ F F F F ˈ F F 1 F F F 2 F F F F F F F F F F F K.Warawut Database Design 16
  • 17. F 1:N 003 F F F P&S STORE F 1 F 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% K.Warawut Database Design 17 0023 4 0.00%
  • 18. 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 K.Warawut Database Design 18
  • 19. 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 K.Warawut Database Design 19
  • 20. 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 K.Warawut 0023 JAPANESE 1, LIYC Database Design 278.00 No 326 20 0055 JAPANESE 2, LIYC 278.00 No 159
  • 21. F F F Primary Key: PK ( F ) Candiate Key ( F F F ) Composite Key Foreign Key: FK K.Warawut Database Design 21
  • 22. Primary Key: PK ˈ ʽ F F F F F F ʽ F ˈ Primary Key ˈ F K.Warawut Database Design 22
  • 23. Candidate Key ˈ ʽ F ʽ F F ˈ Primary Key F F ˈ F F ˈ F F F F F F F ˈ F ˈ FF F K.Warawut Database Design 23
  • 24. Composite Key ʽ F F F F F F ʽ F ˈ Primary Key ʽ F F F Composite Key K.Warawut Database Design 24
  • 25. Foreign Key ˈ ʽ F ( ˆˉ Many) F ʽ F ˈ Primary Key ( ˆˉ One) 2 F One-to-Many F K.Warawut Database Design 25
  • 26. 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 K.Warawut Database Design 26
  • 27. F ˈ F F (Application Database) F F K.Warawut Database Design 27
  • 28. F F F F F ˈ FF F F F F F ( F F ) F F F F F F F F F K.Warawut Database Design 28
  • 29. F 1. F 2. F F F 3. F F F 4. F F F Normalization K.Warawut Database Design 29
  • 30. 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 K.Warawut Database Design 30
  • 31. F F Normalization Normalization F F F (Repeating Group) 1st Normal Form F F F F F F 2nd Normal Form F F F F F F 4th Normal Form F F F PK Candidate Key F F F F (Multivalued Dependency) 3rd Normal Form K.Warawut Database Design 31
  • 32. F 1 (First Normal Form) F F F F F F F F 1 F F F F ˈ F F K.Warawut Database Design 32
  • 33. 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 K.Warawut Database Design 33
  • 34. 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 K.Warawut Database Design 34
  • 35. 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 K.Warawut Database Design 35
  • 36. E-R Diagram K.Warawut Database Design 36