Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 11G SQL

Authors: Joan Casteel

2nd Edition

1133947360, 978-1133947363

More Books

Students also viewed these Databases questions

Question

What is the best conclusion for Xbar Chart? UCL A X B C B A LCL

Answered: 1 week ago