david m. kroenke and david j. auer database...

68
David M. Kroenke and David J. Auer Database Processing: Fundamentals, Design, and Implementation Assignment 1 Getting Started with Microsoft Access 2013

Upload: tranxuyen

Post on 30-Jul-2018

238 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

David M. Kroenke and David J. Auer

Database Processing: Fundamentals, Design, and Implementation

Assignment 1

Getting Started with Microsoft Access 2013

Page 2: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Assignment Objectives

• To be able to create databases in Access 2013

• To be able to create tables in Access 2013

• To understand Access 2013 data types

• To be able to insert data into tables in Access 2013

• To be able to create relationships between tables in Access

2013

• To be able to create Query-by-Example (QBE) queries in

Access 2013

• To understand the use of the Form Wizard in Access 2013

• To understand the use of the Report Wizard in Access 2013

A-2

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 3: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Create 3 Tables for Assign 1 Three tables: STUDENT, CLASS, and GRADE

A-3

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 4: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Example Database Design Three tables: STUDENT, CLASS, and GRADE

A-4

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 5: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

The Microsoft Access 2013 App Tile

A-5

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 6: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Microsoft Access—Table Keys

• Each table has a key.

• A key is one or more columns that identify a row. – StudentNumber in STUDENT

– ClassNumber in CLASS

• Keys composed of more than one column are called composite keys. – (StudentNumber, ClassNumber) in GRADE

• See Chapter Three for a complete discussion of keys.

• In this Appendix, the following keys are relevant: – Primary key—the key used to identify rows in a table

– Foreign key—the key used to link to another table

– Surrogate key—a short, numeric key added to the table as an ideal identifier when other fields don’t work as well

A-6

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 7: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Microsoft Access 2013 Basic Data Types

A-7

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 8: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Example Database Design The STUDENT Table

A-8

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 9: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Example Database Design The CLASS Table

A-9

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 10: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Example Database Design The GRADE Table

A-10

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 11: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Microsoft Access—Relationships

• StudentNumber in GRADE creates a

relationship to StudentNumber in

STUDENT.

• ClassNumber in GRADE creates a

relationship to ClassNumber in CLASS

• StudentNumber in GRADE and

ClassNumber in GRADE are examples of

foreign keys.

A-11

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 12: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Creating a Database I

A-12

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 13: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Creating a Database II

A-13

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 14: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Creating a Database III

A-14

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 15: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

The Microsoft Office Fluent User Interface

A-15

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 16: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

The Quick Access Toolbar

A-16

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 17: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Database Objects and the Navigation Pane I

A-17

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 18: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Database Objects and the Navigation Pane II

A-18

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 19: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Opening an Existing Database: The Backstage View

A-19

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 20: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

The Security Warning Bar

A-20

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 21: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Creating a Table I

A-21

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 22: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Creating a Table II

A-22

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 23: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Creating Columns (Fields) I

A-23

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 24: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Creating Columns (Fields) II

A-24

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 25: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Creating Columns (Fields) III

A-25

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 26: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Creating Columns (Fields) IV

A-26

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 27: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Setting the Primary Key I

A-27

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 28: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Setting the Primary Key II

A-28

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 29: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Saving the Table Structure I

A-29

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 30: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Saving the Table Structure II

A-30

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 31: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Saving the Table Structure III

A-31

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 32: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Adding Data to Tables

• We can add data to a table by:

– Using the datasheet view

– Using a form

A-32

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 33: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

STUDENT Data

A-33

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 34: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

CLASS Data

A-34

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 35: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Adding Data to Tables: Using the Datasheet View I

A-35

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 36: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Adding Data to Tables: Using the Datasheet View II

A-36

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 37: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Adding Data to Tables: Using the Datasheet View III

A-37

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 38: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Adding Data to Tables: Using the Datasheet View IV

A-38

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 39: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Creating Relationships I

A-39

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 40: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Creating Relationships II

A-40

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 41: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Creating Relationships III

A-41

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 42: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Creating Relationships IV

A-42

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 43: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Creating Relationships V

A-43

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 44: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Creating Relationships VI

A-44

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 45: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

GRADE Data

A-45

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 46: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Creating QBE Queries I

A-46

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 47: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Creating QBE Queries II

A-47

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 48: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Creating QBE Queries III

A-48

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 49: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Creating QBE Queries IV

A-49

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 50: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Creating QBE Queries V

A-50

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 51: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Creating QBE Queries VI

A-51

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 52: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Creating QBE Queries VII

A-52

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 53: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Access 2013 Forms

A-53

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 54: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Access 2013 Reports

A-54

KROENKE AND AUER - DATABASE PROCESSING, 14th Edition

© 2016 Pearson Education, Inc.

Page 55: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Appendix A – Getting Started with Microsoft Access 2013

Page A-4

Copyright © 2016 Pearson Education, Inc.

PART 1 REVIEW QUESTIONS

A.1. Part 1 – Using the Student-Class-Grade database that you created answer the following:

A. Create and run an Access QBE query to duplicate the results in Figure 1-10. Save the query as QBE-Query-A-02.

Page 56: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Appendix A – Getting Started with Microsoft Access 2013

Page A-5

Copyright © 2016 Pearson Education, Inc.

B. Use the Form Wizard to create a data input form for the STUDENT table. Name the form Student Data Input Form. Using the student data shown in Figure A-49, add the new students to the STUDENT table.

Page 57: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Appendix A – Getting Started with Microsoft Access 2013

Page A-6

Copyright © 2016 Pearson Education, Inc.

C. Use the Form Wizard to create a data input form for the CLASS table. Name the form Class Data Input Form. Using the class data shown in Figure A-50, add the new classes to the CLASS table.

Page 58: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Appendix A – Getting Started with Microsoft Access 2013

Page A-7

Copyright © 2016 Pearson Education, Inc.

D. Use the Form Wizard to create a data input form for the GRADE table. Name the form Grade Data Input Form. Using the grade data shown in Figure A-48, add the new grades to the GRADE table.

.

Page 59: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Appendix A – Getting Started with Microsoft Access 2013

Page A-8

Copyright © 2016 Pearson Education, Inc.

E. Use the Form Wizard to duplicate the CLASS form in Figure 1-9. Note that this form uses more than one table.

Formatting this form requires the use of Design View.

Page 60: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Appendix A – Getting Started with Microsoft Access 2013

Page A-9

Copyright © 2016 Pearson Education, Inc.

F. Use the Report Wizard to create a report of the data in the STUDENT table. Name the report Student Data Report.

Page 61: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Appendix A – Getting Started with Microsoft Access 2013

Page A-10

Copyright © 2016 Pearson Education, Inc.

G. Use the Report Wizard and the CLASS, STUDENT and GRADE tables to duplicate the Class Grade Report shown in Figure 1-11. Note that your version of this report will display additional data because of the data you added to the database in steps B, C and D above.

Formatting this report requires the use of Design View.

Page 62: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Appendix A – Getting Started with Microsoft Access 2013

Page A-11

Copyright © 2016 Pearson Education, Inc.

PART 2 REVIEW QUESTIONS

A.2. Part 2 of assignment you will create and submit a separate database. In this exercise,

you will build the Cape Codd database used for the SQL examples in Chapter 2. The Access 2013 tables and relationships are shown in Figure 2-2.

A. Create a new Access 2013 database named Cape-Codd.accdb.

B. The column characteristics for the RETAIL_ORDER table are shown in Figure A-51. Create the RETAIL_ORDER table.

C. The column characteristics for the SKU_DATA table are shown in Figure A-53. Create the SKU_DATA table.

Page 63: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Appendix A – Getting Started with Microsoft Access 2013

Page A-12

Copyright © 2016 Pearson Education, Inc.

D. The column characteristics for the ORDER_ITEM table are shown in Figure A-54. Create the ORDER_ITEM table.

Page 64: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Appendix A – Getting Started with Microsoft Access 2013

Page A-13

Copyright © 2016 Pearson Education, Inc.

E. The data for the RETAIL_ORDER table are shown in Figure 2-6(a). Populate the RETAIL_ORDER table.

F. The data for the SKU_DATA table are shown in Figure 2-6(a). Populate the RETAIL_ORDER table.

G. Create the relationship between the RETAIL_ORDER and ORDER_ITEM tables. Be sure to enforce referential integrity.

H. Create the relationship between the SKU_DATA and ORDER_ITEM tables. Be sure to enforce referential integrity.

I. The data for the ORDER_ITEM table are shown in Figure 2-6(a). Populate the RETAIL_ORDER table.

J. Why did you enter the ORDER_ITEM data only after creating the relationships between the tables?

Page 65: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Appendix A – Getting Started with Microsoft Access 2013

Page A-14

Copyright © 2016 Pearson Education, Inc.

K. Create a QBE query to display Department and Buyer in the SKU_DATA table. Save the query as QBE-Query-A-RQ-01.

Page 66: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Appendix A – Getting Started with Microsoft Access 2013

Page A-15

Copyright © 2016 Pearson Education, Inc.

L. The column characteristics for the CATALOG_SKU_20## table are shown in Figure A-55. Using this data, create the CATALOG_SKU_2014 and CATALOG_SKU_2015 tables.

M. The data for the CATALOG_SKU_2014 table is shown in Figure 2-6(b). Populate the CATALOG_SKU_2014 table.

Page 67: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Appendix A – Getting Started with Microsoft Access 2013

Page A-16

Copyright © 2016 Pearson Education, Inc.

N. The data for the CATALOG_SKU_2015 table is shown in Figure 2-6(b). Populate the CATALOG_SKU_2015 table.

O. Create a QBE query to display CatalogID, SKU, SKU_Description, and Department from the CATALOG_SKU_2014 table. Save the query as QBE-Query-A-RQ-02.

Page 68: David M. Kroenke and David J. Auer Database Processingksuweb.kennesaw.edu/~rgesick1/relayHealth/projects... · David M. Kroenke and David J. Auer Database Processing: Fundamentals,

Appendix A – Getting Started with Microsoft Access 2013

Page A-17

Copyright © 2016 Pearson Education, Inc.

P. Create a QBE query to display CatalogID, SKU, SKU_Description, and Department from the CATALOG_SKU_2015 table. Save the query as QBE-Query-A-RQ-03.