Database Processing - Edition16-Appendix-A
Database Processing - Edition16-Appendix-A
Online Appendix A
Getting Started with Microsoft Access 2019
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
A-2
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
Chapter Objectives
• To create databases in Microsoft Access 2019
• To create tables in Microsoft Access 2019
• To understand Microsoft Access 2019 data types
• To insert data into tables in Microsoft Access 2019
• To create relationships between tables in Microsoft Access 2019
• To create Query-by-Example (QBE) queries in Microsoft Access 2019
• To create SQL views in Microsoft Access 2019
• To understand the use of the Form Wizard in Microsoft Access 2019
• To understand the use of the Report Wizard in Microsoft Access 2019
1
Students registered in CS or MIS classes should check to see if your school is part of the Microsoft Azure Dev Tools
for Teaching program (formerly the Microsoft Developers Network Academic Alliance [MSDNAA] program, then
the Dreamspark program, and then as Microsoft Imagine) (https://azureforeducation.microsoft.com/en-us/
Institutions). If so, you may be able to obtain Microsoft Access 2019 through that program. (accessed October
2020)
A-3
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
A-4
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
In the schema, table names are written in all uppercase letters (for example, STUDENT). Column names
are written with the initial letter of each name capitalized (for example, Grade). If the column name is a
compound name, then the initial letter of each word in the name is capitalized (for example, Student-
Number).
A-5
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
▪ NOTE: Alternatively, click the Access 2019 icon on the Task Bar. This icon is created
during the Microsoft Access 2019 installation process (normally part of the Microsoft
Office 2019 installation).
▪ NOTE: We are using the Microsoft Windows 10 Anniversary Update (Feature update to
Windows 10, version 1607), and the instructions for staring Microsoft Access 2019 are
based on that version or later. In earlier versions of Windows 10, there is an All apps
button that you must click in order to see the All apps menu shown in Figure A-2.
2. The Microsoft Access 2019 window appears, as shown in Figure A-3. Note that the Microsoft
Access 2019 window opens with the Access Backstage start screen displayed, which shows
(1) a list of recently opened database files, (2) the Open Other Files button (used to browse for
other database files), and (3) a set of Microsoft Access database templates available to the user.
The Custom web app template is selected by default, but we want to create a blank desktop
database.
A-6
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
Figure A-3 — The Microsoft Access 2019 Recent File List and New Database Templates
A-7
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
▪ NOTE: The menu commands, icon location, and file locations used here are those found
when using the Microsoft Windows 10 operating system. If you are using the Microsoft
Windows 7 or Windows 8.1 operating system, the exact terminology will vary
somewhat, but these variations will not change the required actions.
▪ NOTE: Microsoft Access 2019 (with the Light Grey Office Theme) is used in this book,
and the wording of the steps and appearance of the screenshots reflect its use. If you
have a different version of Microsoft Access, there will be some differences in the step-
by-step details and in what you see onscreen. However, the basic functionality is the
same, and you can complete these steps using any version of Microsoft Access.
3. Click the Blank desktop database template in the New pane. The Blank desktop database dialog
box is displayed, as shown in Figure A-4.
4. Type the database name Student_Class_Grade.accdb into the File Name text box and then click
the Create button.
▪ NOTE: By default, in Windows 10 the database file will be created in your Documents
folder. If you want to create the database file in a different location, use the Browse
button shown in Figure A-4.
▪ NOTE: If you use the Browse button to browse to a different file location, you will use
the File New Database dialog box to create the new database file. Once you have
browsed to the correct folder, type the database name in the File Name text box of the
File New Database dialog box, and then click the OK button to create the new database.
5. The new database appears, as shown in Figure A-5. The Microsoft Access window itself is now
named Student-Grade-Class: Database (followed by the fully qualified database file name
C:\Users\{UserName}\Documents\Student-Grade-Class.accdb and the file format Access 2007 -
2016 file format, only parts of which are visible in the screen shot in Figure A-5).
A-8
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
A-9
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
▪ NOTE: The reference to the Microsoft Access 2007-2016 file format in the window name
indicates that the database is stored as an *.accdb file, which is the Microsoft Access
database file format introduced with Microsoft Access 2007, and used in Microsoft
Access 2010 , Microsoft Access 2013, Microsoft Access 2016, and now in Microsoft
Access 2019. Prior versions of Microsoft Access used the *.mdb file format (which can
be opened and manipulated in Access 2019). Thus, Microsoft Access 2019 does not
introduce a new file format, but continues to use the Microsoft Access 2007 *.accdb file
format.
Note that because this is a new database, Microsoft Access 2019 has assumed that you will want to im-
mediately create a new table. Therefore, a new table named Table1 is displayed in Datasheet view in
the document window. We do not want this table open at this time, so click
6. the Close document button shown in Figure A-5(a) or A-5(b).
7. The Microsoft Access 2019 window with the new database appears, as shown in Figure A-6. You
can see most of the features of the Microsoft Office Fluent user interface in this window.
A-10
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
A-11
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
Microsoft documentation varies about just what constitutes the Ribbon. The Quick
Access Toolbar documentation is split and often includes the toolbar in the Ribbon. In this book, we will
define the Ribbon to only include the command tabs and contextual command tabs.
A-12
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
Microsoft uses the term object as a general name for the various parts of a Microsoft Access database.
Thus, a table is an object, a report is an object, a form is an object, and so on. Microsoft Access objects
are displayed in the Microsoft Access Navigation Pane, as shown in Figure A-6. However, because you
have not created any objects in the Student-Class-Grade database, the Navigation Pane is currently
empty. You can adjust the width of the Navigation Pane by clicking and dragging the left border.
The Navigation Pane is currently labeled as All Access Objects, which is what we want to see displayed.
We can, however, select exactly which objects will be displayed by using the Navigation Pane drop-
down list. As shown in Figure A-8, the Navigation Pane drop-down list is controlled by the Navigation
Pane drop-down list button. Figure A-9 shows the empty Navigation Pane, and the Shutter Bar
Open/Close button. We can hide the Navigation Pane if we want to by clicking the Shutter Bar
Open/Close button, which is displayed as a left-facing double chevron button on the upper-right corner
of the Navigation Pane in Figure A-9. If we click the button, the Navigation Pane shrinks to a small band
labeled Navigation Pane on the right side of the Microsoft Access 2019 window. The band will then dis-
play the Shutter Bar Open/Close button as a right-facing double chevron button that you can click to re-
store the Navigation Pane when you want to use it again.
A-13
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
The Navigation
Pane is empty be-
cause we have not
created any objects
for this database
For example, when you close a table with modified column widths, Microsoft Access asks if you want to
save the changes in the table layout. Therefore, you do not need to save Microsoft Access databases the
way you save Microsoft Word documents and Microsoft Excel workbooks. You can simply close a data-
base, knowing that Microsoft Access has already saved all critical changes since you opened it.
Closing a Database and Exiting Microsoft Access
1. Click the Close button. The database closes, and you exit the Microsoft Access program.
Instead of clicking the Close button, you can close just the database while
leaving Microsoft Access open by selecting File | Close.
A-14
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
recently opened database files, (2) the Open Other Files button (used to browse for other
database files, and (3) a set of Microsoft Access database templates available to the user.
3. Note that the database file Student_Class_Grade.accdb is listed in the Recent list.
4. Note that if the database has been used very recently, it will always be available in the Recent
list. Otherwise, we will need to click the File | Open command to see it in the Recent page of
that window. At this point, however, we can open the database by clicking on either entry.
Because the Access start screen is open, click the Student_Class_Grade.accdb filename in the
Recent list to open the database.
5. A Security Warning bar appears with the database, as shown in Figure A-11.
Figure A-10 — The Microsoft Access Start Screen and Recent List
The Security
Warning Bar
A-15
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
At this point, we have the option of clicking the Security Warning bar’s Click for more details link, which
will display a detailed version of the warning together with security options. However, for our purposes
in this text, we simply need to enable the active content, so click the Enable Content button.
▪ NOTE: At some point, you should select the Click for more details link, and explore the
security settings available.
▪ NOTE: In Microsoft Access 2007, the Security Warning bar appeared every time the
database was re-opened (although only from a non-trusted location — see the
discussion of trusted locations in the Microsoft Access 2019 documentation). In
Microsoft Access 2019, the Security Warning bar is only displayed the first time you re-
open a database, and your choice of options is remembered from that point on.
▪ NOTE: You can also open an existing Microsoft Access 2019 by double-clicking on the file
name in Microsoft Windows Explorer.
A-16
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
Remarks contains comments about the column or how it is used. For STUDENT, the only comment is
that StudentNumber is a surrogate key. Surrogate keys are discussed in Chapter 3. At this point, you
simply need to know that a surrogate key is usually a set of computer-generated unique numbers used
A-17
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
to identify rows in a table (that is, a primary key). This is done by using the Microsoft Access
AutoNumber data type.
Creating the STUDENT Table
1. Click the Create command tab to display the Create command groups.
2. Click the Table Design button, as shown in Figure A-14. The Table1 tabbed document window is
displayed in Design view, as shown in Figure A-15. Note that along with the Table1 window a
contextual tab grouping named Table Tools is displayed and that this tab grouping adds a new
command tab named Design to the set of command tabs displayed.
▪ NOTE: It seems like now would be a good time to name the new table STUDENT. With
Microsoft Access, however, you don’t name a table until you save it the first time, and
you can’t save a table until you have at least one column defined. So, we will define the
columns, and then we will save and name the table. If you want, save the table after
you’ve defined just one column.
3. In the Field Name column text box of the first line, type the column name StudentNumber and
then press the Tab key to move to the Data Type column. (You can also click the Data Type
column to select it.)
▪ NOTE: The terms column and field are considered synonyms in database work. The term
attribute is also considered to be equivalent to these two words.
A-18
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
4. Select the AutoNumber data type for StudentNumber from the Data Type drop-down list, as
shown in Figure A-16.
5. If you like, an optional comment may be stored in the Description column. To do so, move to the
Description column by pressing the Tab key or clicking in the Description text box. Type the text
Surrogate key for STUDENT and then press the Tab key to move to the next row. The Table1
tabbed document window now looks as shown in Figure A-17.
▪ NOTE: The Remarks column in the set of database column characteristics shown in
Figure A-12 is not the same as the table Description column shown in Figure A-17. Be
careful not to confuse them. The Remarks column is used to record technical data, such
as facts about table keys and data default values that are necessary for building the
table structure. The Description column is used to describe to the user the data stored
in that field so that the user understands the intended use of the field.
6. The other columns of the STUDENT table are created using the sequence described in steps 3
through 5.
▪ NOTE: See Figure A-20 for the full set of Description column entries for this table.
6. To set the number of characters in text columns, edit the Short Text data type Field Size text box
as shown in Figure A-16. The default value for Field Size is 255, and the maximum value is 255.
To make a column required, click anywhere in the column Data Type Required property text box
A-19
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
Select AutoNumber
The completed
StudentNumber column
definition
A-20
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
to display the Required property drop-down list arrow button and then click the button to
display the Required property drop-down list, as shown in Figure A-19.
A-21
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
9. Select Yes from the Required property drop-down list. The default is No (not required), and Yes
must be selected to make the column required.2
Now we need to set a primary key for the STUDENT table. According to Figure A-12, we need to use the
StudentNumber column as the primary key for this table.
2 Microsoft Access has an additional Data Type property named Allow Zero Length. This property confounds the
settings necessary to truly match the SQL constraint NOT NULL discussed in Chapter 7. However, the discussion of
Allow Zero Length is beyond the scope of this book. See the Microsoft Access Help system for more information.
A-22
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
A-23
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
2. Type the table name STUDENT into the Save As dialog box’s Table Name text box and then click
the OK button. The saved table name STUDENT now appears on the document tab, and the
STUDENT table object is displayed in the Navigation Pane, as shown in Figure A-23.
3. To close the STUDENT table, click the Close button in the upper-right corner of the tabbed
documents window. After the table is closed, the STUDENT table object remains displayed in the
Navigation Pane, as shown in Figure A-24.
At this point, we need to build the CLASS and GRADE tables. The CLASS table will have the column char-
acteristics shown in Figure A-25, and the GRADE table will have the column characteristics shown in
Figure A-26. Using steps similar to those you used for the STUDENT table, create the CLASS and GRADE
tables. Note that GRADE has a composite primary key, and in order to designate this key you must
select the row representing StudentNumber, as discussed earlier, and then CTRL-Click (hold down the
CTRL key and then click) on the row representing ClassNumber so that both are highlighted when you
click the Primary Key button.
A-24
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
A-25
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
A-26
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
2. Click the STUDENT document tab to select the STUDENT table in Datasheet view.
3. Click the cell in the StudentNumber column with the phrase (New) in it to select that cell in the
new row of the STUDENT datasheet.
4. Press the Tab key to move to the LastName cell in the new row of the STUDENT datasheet. For
student Sam Cooke, type Cooke in the LastName cell. Note that as soon as you do this, the
AutoNumber function puts the number 1 in the StudentNumber cell, and a new row is added to
the datasheet, as shown in Figure A-29.
5. Using the Tab key to move from one column to another in the STUDENT datasheet, enter the
rest of the data values for Sam Cooke.
6. The final result is shown in Figure A-30. Note that the width of the Email column was expanded
using the mouse to move the border of the column—just as you do in an Excel worksheet.
▪ NOTE: If you make a mistake and need to return to a cell, click the cell to select it, and
you go into Edit mode. Alternatively, you can use Shift-Tab to move to the right in the
datasheet and then press F2 to edit the contents of the cell.
▪ NOTE: Remember that LastName and FirstName require a data value. You will not be
able to move to another row or close the table window until you have some value in
each of these cells.
▪ NOTE: Figure A-30 shows a column labeled Click to Add to the right of the Email column.
This is a table tool in Datasheet view that you can use to create or modify table
structures. We do not recommend using these tools; we prefer to use Design view
instead!
▪ NOTE: Altering the width of a column in datasheet view does not change the amount of
data stored in the database – it only changes the way the data is presented in datasheet
view.
7. Use the Tab key to move to the next row of the STUDENT datasheet and enter the data for
Marcia Lau.
8. Enter the data for Lou Harris.
9. Enter the data for Grace Greene.
10. If necessary, adjust the datasheet column widths so that you can see the contents of the
datasheet in one screen. The final result is shown in Figure A-31.
11. Click the Close button in the upper-right corner of the document window to close the STUDENT
datasheet. If a dialog box appears asking if you want to save the changes you made to the layout
(column widths), click the Yes button.
A-27
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
At this point, we need to enter data into the CLASS table, but not into the GRADE table. The data in the
GRADE table will be entered only after we have created the relationships between the tables. The data
for the CLASS table are shown in Figure A-32. Enter this data using the CLASS table in Datasheet view.
After data is entered into a table, you can modify or change it by editing the data values in the
Datasheet view. You can also delete rows of data in the Datasheet view. For information on how to do
this, see the Microsoft Access 2019 documentation in the Help system.
A-28
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
Note that along with the Relationships window, a contextual tab named Relationship Tools is
displayed and that this tab adds a new command tab named Design to the set of command tabs
displayed.
3. In the Show Table dialog box, click the STUDENT table to select it. Click the Add button to add
STUDENT to the Relationships window.
4. In the Show Table dialog box, click the GRADE table to select it. Click the Add button to add
GRADE to the Relationships window.
5. In the Show Table dialog box, click the Close button to close the dialog box.
6. Rearrange and resize the table objects in the Relationships window using standard Windows
drag-and-drop techniques. Rearrange the STUDENT and GRADE table objects until they appear
as shown in Figure A-35. Now we are ready to create the relationship between the tables.
▪ NOTE: A formal description of how to create a relationship between two tables is “In the
Relationships window, drag a primary key column and drop it on top of the
corresponding foreign key column.” It is easier to understand this after you have
actually done it.
A-29
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
7. Click and hold the column name StudentNumber in the STUDENT table and then drag it over
the column name StudentNumber in the GRADE table. The Edit Relationships dialog box
appears, as shown in Figure A-36.
A-30
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
9. Click the Create button to create the relationship between STUDENT and GRADE. The
relationship between the tables now appears in the Relationships window, as shown in Figure A-
37.
10. To close the Relationships window, click the Close button in the upper-right corner of the
document window. A Microsoft Access dialog box appears, asking whether you want to save
changes to the layout of relationships. Click the Yes button to save the changes and close the
window.
A-31
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
Now we need to repeat essentially the same steps and create the relationship between CLASS and
GRADE. When we are done, the relationships appear as shown in Figure A-38.
At this point, referential integrity has been established between the foreign keys in GRADE and the
corresponding primary keys in STUDENT and CLASS. This means that we cannot add a data value to
StudentNumber or ClassNumber in GRADE unless the same value already exists in StudentNumber in
STUDENT or ClassNumber in CLASS. This prevents us from inserting erroneous data into GRADE.
Now we can enter the GRADE data shown in Figure A-39 into the GRADE table. After this is done, we
have completed creating and populating the Student-Class-Grade database.
1 10 3.7
1 40 3.5
2 20 3.7
3 30 3.1
4 40 3.0
4 50 3.5
A-32
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
A-33
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
4. In the Show Table dialog box, click CLASS to select the CLASS table. Click the Add button to add
the CLASS table to the query.
5. In the Show Table dialog box, click GRADE to select the GRADE table. Click the Add button to
add the GRADE table to the query.
6. In the Show Table dialog box, click STUDENT to select the STUDENT table. Click the Add button
to add the STUDENT table to the query.
7. Click the Close button to close the Show Table dialog box.
8. Rearrange and resize the query window objects in the Query1 query document window, using
standard Windows drag-and-drop techniques, until they appear as shown in Figure A-42.
9. Note the elements of the Query1 window shown in Figure A-42: Tables and their associated set
of columns—called a field list—that are included in the query are shown in the upper pane, and
the columns (fields) actually included in the query are shown in the lower pane. For each
included column (field), you can set whether this column’s data appear in the results, how the
data are sorted, and the criteria for selecting which rows of data will be shown. Note that the
first entry in the table’s field list is the asterisk (*), which has its standard SQL meaning of “all
columns in the table.”
10. We include columns in the query by dragging them from the table’s field list to a field column in
the lower pane. Click and drag ClassNumber in CLASS to the first field column, as shown in
Figure A-43. Note that the column is entered as ClassNumber from the table CLASS.
11. Click the Shutter Bar Open/Close button to collapse the Navigation Pane—we will need the
extra space to build the query.
A-34
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
A-35
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
A-36
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
18. The query document window is now named QBE-Query-A-01, and a newly created QBE-Query-
A-01 query object appears in a Queries section of the Navigation Pane.
19. Close the QBE-Query-A-01 query.
20. If Microsoft Access displays a dialog box asking whether you want to save changes to the design
of the query QBE-Query-A-01, click the Yes button.
21. The Student-Class-Database now appears as shown in Figure A-46.
The QBE-Query-A-01
query object
A-37
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
This is a fairly complex query, but it certainly illustrates how to use QBE for more complicated queries.
And if you can run this query, you will be able to run queries using just one or two tables.
A-38
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
A-39
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
The OK button
The viewClassGradeReport
document window tab
The viewClassGradeReport
object
A-40
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
The Form Wizard button is located in the Forms command group on the CREATE ribbon, as shown in
Figure A-52. Once started, the Form Wizard takes us through a step-by-step process to create the
desired form.
The Report Wizard button is located in the Reports group on the Create ribbon, as shown in Figure A-53.
Once started, the Report Wizard takes us through a step-by-step process similar to the one used by the
Form Wizard, but this time to create the desired report.
How Do I Close a Newly Created Database and Exit Microsoft Access 2019?
We have finished all the work we need to do in this appendix on getting started with Microsoft Access
2019. We have demonstrated how to create a database, build database tables, populate a table with
data by using Datasheet view, create relationships between tables, and query a database using
Microsoft Access QBE. We have briefly introduced forms and reports.
A-41
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
At this point, you know enough to create and use basic Microsoft Access databases. In particular, you
know enough to create the Cape Codd database that will be used in Chapter 2 in our discussion of SQL
queries. In fact, creating that database is part of the exercises in this appendix.
Having achieved our goal of getting you started using Microsoft Access 2019, we finish by closing the
Student-Class-Grade database and Microsoft Access 2019.
A-42
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
AutoNumber character
number numeric
required Ribbon
type
A-43
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
A.1 Microsoft Access 2019 includes an application generator. What capabilities does this feature
add to Microsoft Access 2019 that are not usually found in enterprise-class DBMS products such
as SQL Server 2019, Oracle Database, and MySQL Server 8.0?
A.2 What is a primary key? What is a foreign key? How are foreign keys used to create relationships
between tables?
A.3 What file extension is used to identify Microsoft Access 2019 database files?
A.4 What is the Microsoft Office Fluent user interface? Describe the components of the Fluent user
interface as used in Microsoft Access 2019.
A.5 What is the Microsoft Access 2019 Quick Access Toolbar, and what is it used for?
A.7 How does Microsoft Access 2019 create surrogate keys in tables?
A.10 What is an SQL view, and how are views created in Microsoft Access 2019?
A.11 Using the Student-Class-Grade database that you created in this Appendix:
A. Create and run a Microsoft Access QBE query to duplicate the results in Figure 1-12.
Save the query as QBE-Query-A-02, then save a copy as viewStudentNumberGT2.
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-54, add the new
students to the STUDENT table.
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-55, add the new classes to
the CLASS table.
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-56, add the new grades
to the GRADE table.
E. Use the Form Wizard to duplicate the CLASS form in Figure 1-11. Note that this form
uses more than one table.
A-44
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
1 60 3.3
2 60 3.5
5 70 3.7
6 70 2.7
7 80 3.0
7 90 3.3
F. Use the Report Wizard to create a report of the data in the STUDENT table. Name the
report Student Data Report.
G. Use the Report Wizard and the CLASS, STUDENT, and GRADE tables to replicate the
Class Grade Report shown in Figure 1-13. 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.
A-45
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
A.12 In this exercise, you will build the Cape Codd database used for the SQL examples in
Chapter 2. The Microsoft Access 2019 tables and relationships are shown in Figure 2-4.
A. Create a new Microsoft Access 2019 database named Cape_Codd.accdb.
B. The column characteristics for the RETAIL_ORDER table are shown in Figure A-57. Using
this data, create the RETAIL_ORDER table.
C. The column characteristics for the SKU_DATA table are shown in Figure A-58. Using this
data, create the SKU_DATA table.
D. The column characteristics for the ORDER_ITEM table are shown in Figure A-59. Using
this data, create the ORDER_ITEM table.
E. The data for the RETAIL_ORDER table is shown in Figure 2-6(a). Populate the
RETAIL_ORDER table.
F. The data for the SKU_DATA table is shown in Figure 2-6(a). Populate the SKU_DATA
table.
G. Create the relationship between the RETAIL_ORDER and ORDER_ITEM tables. Enforce
referential integrity.
H. Create the relationship between the SKU_DATA and ORDER_ITEM tables. Enforce
referential integrity.
I. The data for the ORDER_ITEM table are shown in Figure 2-6(a). Populate the
ORDER_ITEM table.
J. Why did you enter the ORDER_ITEM data only after creating the relationships between
the tables?
RETAIL_ORDER
Figure A-57 — Column Characteristics for the Cape Codd RETAIL_ORDER Table
A-46
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
SKU_DATA
Figure A-58 — Column Characteristics for the Cape Codd SKU_DATA Table
ORDER_ITEM
Figure A-59 — Column Characteristics for the Cape Codd ORDER_ITEM Table
K. Create a QBE query to display Department and Buyer from the SKU_DATA table. Save
the query as QBE-Query-A-RQ-01.
L. The column characteristics for the CATALOG_SKU_20## table are shown in Figure A-60.
Using this data, create the CATALOG_SKU_2020 and CATALOG_SKU_2021 tables.
M. The data for the CATALOG_SKU_2020 table is shown in Figure 2-6(b). Populate the
CATALOG_SKU_2020 table.
N. The data for the CATALOG_SKU_2021 table is shown in Figure 2-6(b). Populate the
CATALOG_SKU_2021 table.
A-47
Database Processing (16th Edition) Appendix A Getting Started with Microsoft Access 2019
CATALOG_SKU_20##
Figure A-60 — Column Characteristics for the Cape Codd CATALOG_SKU_20## Table
O. Create a QBE query to display CatalogID, SKU, SKU_Description, and Department from
the CATALOG_SKU_2020 table. Save the query as QBE-Query-A-RQ-02.
P. Create a QBE query to display CatalogID, SKU, SKU_Description, and Department from
the CATALOG_SKU_2021 table. Save the query as QBE-Query-A-RQ-03.
A-48