You are on page 1of 2

Version A

Access question
Creating Tables by Entering Data
a. Create a new database named Book your last name_your first name.
b. Add a table called Binding that specifies the binding type of the book. The information is
listed in the table below.

Binding Binding Type Explanation


Code
10 Hard Hardcover
20 Leather Leather
30 Paper Paperback
40 Ring Ring binding
50 Flexible Soft hardcover

c. Modify the table in Design view using the information below


1. Set the primary key to be the Binding Code field
2. For the Binding Code, make the field size double and the format general number.
3. Change the field names to the names in the top row of the table above
4. Set the field size of the Binding Type field to 12.

Importing Data from Excel


Use the Import Data Wizard to import the worksheet from Excel into Access. You need to select the
worksheets, specify the primary keys, and name the newly imported table.
a. The source of your data is the Excel data for Access question 2021.xlsx file.
b. The Book Number field will become your primary key.
c. Name the table Books.
d. Change the YEAR field to have a type Short Text.
Creating Relationships
You need to create the relationship between the tables.
a. In the Relationships window, create a relationship between the Binding Code field in the
Binding table and in the Books table. Enforce referential integrity and cascade update related
fields.
b. Close the Relationships window and save your changes.

Creating a Query with the Query Wizard and Sorting the Results
a. Create a simple query using the Query Wizard for the Books table showing the Title
and Year fields for all books
b. Save the query as All Books then close the query.
1
Version A
Version A
c. Make a copy of All Books query by right clicking, Copy, and Paste into the navigation
pane. Open the second All Books query in Design view.
d. Change the query so that it only displays the books printed before 1954.
e. Include the binding type.
f. Sort the query by the Title field in ascending order.
g. Run the query.
h. Save the query as Books Printed Before 1954.
i. Close the query.
j. Compact, repair, and save the file.

Submit on Blackboard

2
Version A

You might also like