Drivers and Insurance
You have been asked to modify a database that tracks driver data and insurance details. You will update, add to, and delete records from tables. You will also create queries that aggregate data, find unmatched, and repeating values.
For the purpose of grading the project you are required to perform the following tasks:
Start Access. Open the downloaded Access database namedexploring_a06_Grader_h1. Save the database asexploring_a06_Grader_h1_LastFirst.
Create a select query that includes the CategoryID and CategoryName from the Categories table and the UnitPrice and ProductName fields from the Products table (in that order). Run the query and note the CategoryIDs for Beverages and Dairy.
Add the appropriate CategoryID criterion to limit the query output to only beverages. Convert the query to an update query. Update the UnitPrice for beverages only by increasing it by 5 percent.
Update the UnitPrice for dairy products only by increasing it by 4 percent. Run the query. Save the query as Update Prices. Close the query.
Create a select query that identifies all of the discontinued products. Include all fields from the Products table.
Convert the select query to a make table query. Name the new table Discontinued Products. Run the query. Save the query as Make Discontinued Products Table. Close the query.
Make a copy of the Make Discontinued Products Table query and save it as Append Discontinued Products Table. Open the Append Discontinued Products Table query in Design view. Convert the make table query to an append query. The query will append to the Discontinued Products table.
Modify the criteria to add the Boston Crab Meat product to the Discontinued Products table, using the SupplierID from the Products table. Remove the criteria related to the Discontinued field. Run the query, save it, and then close it.
Make a copy of the Append Discontinued Products Table query and save it as Delete Discontinued Products. Open the Delete Discontinued Products query in Design view. Convert the append query to a delete query.
Modify the criteria to delete the discontinued products, as well as the record for Boston Crab Meat using its SupplierID (Hint: There will be two criteria). Run, save, and close the query.