R. Show the LastName, FirstName, and Phone of all customers who have bought an item named 'Desk Lamp'. Use a join using JOIN ON syntax.
R. Show the LastName, FirstName, and Phone of all customers who have bought an item named 'Desk Lamp'. Use a join using JOIN ON syntax. Present the results sorted by LastName in ascending order and then FirstName in descending order.
S. Show the LastName, FirstName, and Phone of all customers who have bought an item named 'Desk Lamp'. Use combination of a join using JOIN ON syntax and a subquery. Present the results sorted by LastName in ascending order and then FirstName in descending order.
T. Show the LastName, FirstName, and Phone of all customers who have bought an item named 'Desk Lamp'. Use combination of a join using JOIN ON syntax and a subquery that is different from the combination in question S. Present the results sorted by LastName in ascending order and then FirstName in descending order.
U. Show the LastName, FirstName, Phone, and ItemDescription of all customers who have bought an item named 'Desk Lamp'. Also show the LastName, FirstName, and Phone of all other customers. Present the results sorted by ItemDescription in ascending order, then LastName in ascending order and then FirstName in descending order.
V. Who referred each customer to Marcia's Dry Cleaning? Show columns named CustomerLastName, CustomerFirstName, ReferredByLastName, and ReferredByFirstName. Include the names of customers who were not referred by any other customer in the results of this query.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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