0% found this document useful (0 votes)
103 views

SCM 5003 2021 Access Question

This document provides instructions for creating and populating a database in Microsoft Access. It includes steps to: 1) Create a new Access database and add a table to specify book binding types with codes and descriptions. 2) Import an Excel worksheet into an Access table, specifying the primary key and table name. 3) Create a relationship between the binding codes in the imported and existing tables to enforce referential integrity. 4) Use the Query Wizard to create queries that display book titles and years for all books, and only books before 1954 while including the binding type and sorting by title.

Uploaded by

aarsh patel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
103 views

SCM 5003 2021 Access Question

This document provides instructions for creating and populating a database in Microsoft Access. It includes steps to: 1) Create a new Access database and add a table to specify book binding types with codes and descriptions. 2) Import an Excel worksheet into an Access table, specifying the primary key and table name. 3) Create a relationship between the binding codes in the imported and existing tables to enforce referential integrity. 4) Use the Query Wizard to create queries that display book titles and years for all books, and only books before 1954 while including the binding type and sorting by title.

Uploaded by

aarsh patel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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