Question: 4. Write a SELECT statement that returns three columns: email address, order id, and the order total for each customer. To do this, you can

4. Write a SELECT statement that returns three columns: email address, order id, and the order total for each customer. To do this, you can group the result set by the email address and order_id columns. In addition, you must calculate the order total from the columns in the Order Items table. Write a second SELECT statement that uses the first SELECT statement in its FROM clause. The main query should return two columns: the customer's email address and the largest order for that customer. To do this, you can group the result set by the email address
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
