Instructions:
• Download the attached Microsoft Access Database file (hwk4_ids410.accdb).
• Rename hwk4_ids410.accdb to hwk4_yourNetid.accdb, where yourNetid is your Netid.
• Create (compose) ten queries according to their requirements (see below). Be sure to save all queries inside the hwk4_yourNetid.accdb.
• Upload this renamed file to the Blackboard by 11:59PM on July 25, 2018.
A. Single Table Queries
1. Compose a query to show each raw material that has a dollar value of $1000 or more. The dollar value of each raw material is defined as (footage on hand * unit price). In the result table, show material ID, material description, and the dollar value of each raw material. Sort the result by the dollar value in descending order.
2. Compose a query to find vendor IDs who supply material ID = 4. In the result table, show vendor ID, material ID, and the unit price. Sort the result by unit price in ascending order.
3. Compose a query as follows. For each customer who placed orders, we would like to see the customer ID and the most recent order date placed by that customer.
4. For each customer who submitted at least two orders in 2011, show this customer’s customer ID and total number of orders in 2011.
5. Compose a query to insert a new vendor with the following values: Vendor Name: Lakeshore Lumber; Vendor Address: 1234 Lakeshore Drive; City: Chicago; State: IL; Postal Code: 60625.
6. Compose a query to update the postal code of Lakeshore Lumber from 60625 to 60632. Assume that you know the vendor name is Lakeshore Lumber but you do not know its Vendor ID.
7. Compose a query to delete all vendors who are located in Illinois (IL).
B. Multiple Table Queries
8. Compose a query to find vendors who supply Red Oak with grade B-4. In the result table, show vendor name, material description, grade, and the vendor’s unit price for Read Oak with grade B-4. Sort the result by unit price in ascending order.
9. The management would like to know which order that produced the highest total sales amount (in dollars). In the result table, show the order ID and its corresponding total sales amount as well as the customer name who submitted that order.
10. Compose an SQL statement to show Customer_ID, Customer_Name, Order_ID, and Order_Date for the two most recent orders from each customer. Note: if a customer submitted only one order,