Page 33 - AIS access_chang_ingraham
P. 33

PROBLEMS     31



              PROBLEMS


                          2.1  Creating an REA Diagram based on given tables
                               Examine the following tables and indicate the primary key (using PK) and the foreign
                               keyes) (using FK) for each table. Based on the given tables, draw a complete REA diagram for the
                               database.





                                                                       Inventory

                                 Item_No           Description           Unit Cost           Unit Price          aOH

                                  2010             Blender                14.00               29.95              100
                                  2015             Toaster                12.00               19.95              200
                                  2020             Mixer                  23.00               33.95              150
                                  2025             Television            499.00              699.95               95
                                  2030             Freezer               799.00             999.95                52
                                  2035             Refrigerator          699.00              849.95               75
                                  2040             Radio                  45.00               79.95              200
                                  2045             Clock                  79.00               99.95              150






                                               Salesperson                                    Cashier

                                                      Salesperson_Name                                Name

                                     101                  John Smith                    201         Scott Brown
                                     102                  Brenda Kim                    202         Stony Lee
                                     103                  Julia Berens                  203        Jim White
                                     104                  Joe McGuire                   204         Pat Thomas







                                                                       Customer

                                 Customer_No            Name               City           State          Credit Limit
                                                                                                               -
                                    1000               Smith             Phoenix           AZ               2500
                                    1001               Jones         , ,  St. Louis        MO               1500
                                    1002               Jeffries      'y  Atlanta           GA               4000
                                    1003               Gilkey            Phoenix           AZ               5000
                                    1004               Lankford          Phoenix           AZ               2000
                                    1005               Zeile             Chicago           IL               2000
                                    1006               Pagnozzi          Salt Lake         UT               3000
                                    1007               Arocha            Chicago           IL               1000
   28   29   30   31   32   33   34   35   36   37   38