Question: Using Joins Using the My Guitar Shop database you installed in Module 1 , develop the following queries. Write a SELECT statement that joins the
Using Joins
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.
All the screenshots should show current date. Example of screenshot.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
