Question: Your assignment is to write and execute the SQL queries that will produce the data (record sets) requested below using the small ZAGI database in
Your assignment is to write and execute the SQL queries that will produce the data (record sets) requested below using the small ZAGI database in Microsoft Access. After you are able to run your SQL statement and get the desired result, copy your
- SQL statement, and (2) the output (recordset) from each SQL statement
and include both below each question in this same Word document. You can use the Snipping Tool to copy the recordset. Submit your Word document through BBLearn.
- Retrieve all fields from the product table.
- Retrieve the productname, productprice, and vendorid from the product table for those products sold by vendor MK.
- Retrieve the productname, productprice, and categoryID from the product table for those products which cost more than $100.
- Retrieve the productname, productprice, and categoryID from the product table for those products which cost more than $100 AND have a categoryid CP. Use the structure below in your SQL statement:
SELECT fields
FROM table
WHERE criteria
AND criteria
- Retrieve the productname, productprice, and categoryID from the product table for those products which cost more than $100 OR have the categoryid FW.
SELECT fields
FROM table
WHERE field criteria
OR field criteria
- List the storeid and storezip for all stores in the C region.
- List the productid, tid, and noofitems for all transactions where the noofitems is greater than 2. Hint: find the table that includes these three fields.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
