Page 54 - AIS access_chang_ingraham
P. 54

52    CHAPTER 3  USING ACCESS TO IMPLEMENT A RELATIONAL DATABASE


                                                                                          g~'
                                    I Relationships
                                    ~=:::;:::::;:::::::::;--~::::::;::::;;;;;:;----~-=="R!!
                                         rtlst Table     Purchase Table                       0
                                        Arti&lD
                                        ArtistName       PurchaseDate
                                        ArtistAddress    PurchaseAmount
                                        ArtistOty        ArtistlD
                                        ArtistState           ==-=iJ
                                        ArtistZJPCode
                                        ArtistPhone#
                                        ArtlstEmaii
                                                      Show Table                       -I?lm

                                                       Tables IQueries hoth
                                                                                     [  Add  I
                                                                                     I  Close  I
                                                        Artist Table
                                                        Customer Table            I
                                                       •Pj!rchase l.able
                                                                                  I


                                                                                  I

                                                                                  II
                                                                                   I







                                    FIGURE 3-20

                                     ::I Relationships

                                        I Artist Table   Purchase Table
                                         ArtIsUD         Purchase#
                                         ArtistName      PurchaseDate
                                         ArtistAddress   PurchaseAmount  j
                                         ArtistCity      ArtistID
                                         ArtistState
                                         ArtistlJPCode
                                         ArtistPhone#
                                         ArtistEmaii
                                                                        .....        -...,
                                                                                         rn~!li
                                                       Edit Relationships
                                                        Table/Query:  Related Table/Query:
                                                                                     t  create I II:
                                                          So  e        "d aSl: Til  ...::J
                                                        ArtistlD   I,v ArtistlD   A  I  cancel  I
                                                                                  ~  I  Join Type.. I I
                                                                                  v
                                                                                     ICreate New•. J
                                                         o Enforce Referential Integrity
                                                         D cascade Update Related Fields
                                                         D cascade Delete Related Records
                                                        Relationship Type:  One-To-Many



                                                                                             Ell
                                    <                                                      ill
                                    FIGURE 3-21
   49   50   51   52   53   54   55   56   57   58   59