Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using the My Guitar Shop database you installed in Module 1 , develop the following queries. Write a SELECT statement that joins the Categories table
Using the My Guitar Shop database you installed in Module develop the following queries.
Write a SELECT statement that joins the Categories table to the Products table and returns these columns: categoryname, productname, listprice.
Sort the result set by the categoryname column and then by the productname column in ascending sequence. Execute the query and take a screenshot of the query and the results.
Write a SELECT statement that joins the Customers table to the Addresses table and returns these columns: firstname, lastname, line city, state, zipcode.
Return one row for each address for the customer with an email address of allan.sherwood@yahoo.com. Execute the query and take a screenshot of the query and the results.
Write a SELECT statement that joins the Customers table to the Addresses table and returns these columns: firstname, lastname, line city, state, zipcode.
Return one row for each customer, but only return addresses that are the shipping address for a customer. Execute the query and take a screenshot of the query and the results.
Write a SELECT statement that joins the Customers, Orders, OrderItems, and Products tables. This statement should return these columns: lastname, firstname, orderdate, productname, itemprice, discountamount, and quantity.
Use aliases for the tables.
Sort the final result set by the lastname, orderdate, and productname columns. Execute the query and take a screenshot of the query and the results.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started