Microsoft Access 2013
Querying the Electronics Database
Part-2
Total Points = 100
Purpose: To demonstrate the ability to create and use queries.
Problem: Query an electronics shop database in a variety of different ways.
Instructions: Create a fresh GetItNow Electronics database. Execute the following tasks using queries, and print the results.
1. Open the GetItNow Electronics database and, using the Sales Rep table, create a new query for each of the following tasks.
2. Display and print all fields for all the records in the Sales Rep table. Save the query as Lab Test Step 2.
3. Display and print the Sales Rep ID, Outlet ID, and Quota for all records in the Sales Rep table. Save the query as Lab Test Step 3.
4. Display and print the Sales Rep ID, Outlet ID, and Quota for all Sales Reps with a Gender of M. Save the query as Lab Test Step 4.
5. Display and print the Sales Rep ID, Full Name, Age, and Hire Date for all Sales Reps with a hire date after June 1, 2005. Save the query as Lab Test Step 5.
6. Display and print the Sales Rep ID, Full Name, Outlet ID, Quota, and YTD Sales for all Sales Reps with a quota of more than $2,000,000 and Outlet ID of GINE 17. Save the query as Lab Test Step 6.
7. Display and print the Sales Rep ID, Full Name, Outlet ID, and YTD Sales for all Sales Reps with a Sales Rep ID that begins with 6. Save the query as Lab Test Step 7.
8. Display and print the Sales Rep ID, Full Name, Hire Date, and Quota for all Sales Reps with a hire date before July 2, 2004 or a quota of less than $2,500,000. Save the query as Lab Test Step 8.
9. Display and print the Sales Rep ID, Full Name, Outlet ID, and YTD Sales for the top 4 Sales Reps with YTD Sales greater than $1,500,000 and less than $3,000,000. (Hint: Enter a criteria of “>1500000 And <3000000” for YTD Sales.) Save the query as Lab Test Step 9.
10. Display and print the Sales Rep ID, Outlet ID, Full Name, and Hire Date of all records in the Sales Rep table sorted in ascending sequence by Full name. Using a parameter, ask the user to “Enter Outlet ID”, and use it to limit the records to just those which match the parameter. Save the query as Lab Test Step 10.
11. Using all the fields, display and print all the records in the Sales Reps table sorted in descending sequence by Full Name within Outlet ID. Make Outlet ID the first field in the query. Save the query as Lab Test Step 11.
12. Join the Sales Rep and Outlet tables. Using the fields Sales Rep ID, Outlet ID, Full Name, Address, City, and State, display and print all records. Save the query as Lab Test Step 12.
13. Restrict the records retrieved in Step 12 to only Sales Reps with a Sales Rep ID beginning with a 1. Display and print the results. Save the query as Lab Test Step 13.
14. From the Sales Rep table, display and print the Outlet ID and Quota for the highest quota with an Outlet ID of GINE 26. Save the query as Lab Test Step 14.
15. From the Sales Rep table, display and print the average YTD Sales by Outlet ID. Save the query as Lab Test Step 15.
16. If each Sales Rep is required to increase their quota by 15%, display and print the Sales Rep ID, Outlet ID, Quota, and new quota for every record in the Sales Reps table. Save the query as Lab Test Step 16.
17. Close the GetItNow Electronics database and quit Access.
© 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
Enhanced Microsoft Access 2013
Creating Reports and Forms
Part-3
Purpose: To demonstrate the ability to create reports and forms.
Problem: Your supervisor at GetItNow Electronics wants you to create reports and forms combining data from the Outlets and Sales Rep tables using the techniques learned in Chapter 4.
Instructions: Using the Part-1 GetItNow_Electronics database file, execute the following tasks:
1. Open the Sales Rep report. Group the report by Job Type and sort by Full Name within Job Type. Include totals for Quota and YTD Sales for each grouping. Save the report as Sales Rep Revised. The report should look similar to that shown in Figure A4A – 1.
2. Print the report.
3. Create the Sales Rep by Outlet report as shown in Figure A4A – 2. You will need to use both the Sales Rep and Outlets tables. Include a total for the YTD Sales field. Change the orientation to landscape. Make sure the total control displays completely. (Hint: Use Layout view to make this adjustment.).
4. Print the report.
5. Create the Sales Representatives form shown in Figure A4A – 3 for the Sales Rep table using the Form Wizard. Include the date in the form.
6. Print the form.
7. Submit the test according to the instructions provided by your instructor.
Figure A4A – 1
Figure A4A – 2
Figure A4A – 3
Page 1
© 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
Purpose: To demonstrate the ability to create a database, queries, a form, and a report.
Problem: An electronics store wants to keep track of its sales representatives for its various outlets. The database it will use consists of two tables. The Outlets table contains data on the particular outlet store. The Sales Rep table contains pertinent data about the electronics store’s sales representatives.
Instructions: The structure for the Outlets table is shown in Table A1A – 1 and the data is shown in Table A1A – 2. The structure for the Sales Rep table is shown in Table A1A – 3 and the data is shown in Table A1A – 4.
1. Create a new database to store the two tables related to the electronics store. Call the database, GetItNow Electronics.
2. Create the sales representatives table using the structure shown in Table A1A – 1. Make the Sales Rep ID the primary key. Use the name, Sales Rep, for the table.
3. Add the data shown in Table A1A – 2 to the Sales Rep table.
4. Save the Sales Rep table and print it.
5. Create the Outlets table using the structure shown in Table A1A – 3. Make the Outlet ID the primary key. Use the name, Outlets, for the table.
6. Add the data shown in Table A1A – 4.
7. Save the Outlets table and print it.
8. Create a query using the Simple Query Wizard for the Sales Rep table. Include the Sales Rep ID, Full Name, Outlet ID, Quota, and YTD Sales in the query. Save the query as Sales Rep Query.
9. Open the Sales Rep Query and add a criterion to limit retrieval to those sales representatives located in outlet GINE 11. Save the query as Sales Rep – GINE 11 Query.
10. Create a simple form for the Sales Rep table. Use the name, Sales Rep Form, for the form.
11. Create the report shown in Figure A1A – 1 for the Sales Rep table. Add totals for the Quota and YTD Sales.
12. Change the database properties, as specified by your instructor. Submit the database in the format specified by your instructor.
Structure of the Sales Rep table
Field Name | Data Type | Field Size | Primary Key? | Description |
Sales Rep ID | Short Text | 3 | Yes | Sales Representative ID (Primary Key) |
Full Name | Short Text | 30 | ||
Job Type | Short Text | |||
Gender | Short Text | Gender (M or F) | ||
Age | Number | |||
Hire Date | Date/Time | |||
Outlet ID | Short Text | 7 | Outlet ID | |
Quota | Currency | |||
YTD Sales | Currency | Year to date sales amount |
Table A1A – 1
Data for the Sales Rep table
Table A1A – 2
Structure of the Outlets table
Field Name | Data Type | Field Size | Primary Key? | Description |
Outlet ID | Short Text | 7 | Yes | Outlet ID (Primary Key) |
Address | Short Text | 30 | Outlet Address | |
City | Short Text | 20 | ||
State | Short Text | 2 | ||
Zip | Short Text | 5 |
Table A1A – 3
Data for the Outlets table
Outlet ID | Address | City | State | Zip |
GINE 11 | 1298 Western Court | Bedlam | CA | 34896 |
GINE 15 | 25 Parkington Palace | Southtown | CA | 39746 |
GINE 17 | 1212 Mocking Bird | Ambervson | CA | 38957 |
GINE 26 | 774 Oakland | Parkville | CA | 38974 |
Table A1A – 4
Figure A1A – 1
Page 3
© 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more