Question: SQL Coding: 1. Write a query to get the product(s) whose total order is the lowest in the organization. Base the total order on revenue

SQL Coding:

1. Write a query to get the product(s) whose total order is the lowest in the organization. Base the total order on revenue generated (standard price * order quantity). Output the product id and the revenue for this product.

2. Find the bottom 3 customers who generated the lowest amount of revenue. For these customers, output the customer name and customer state. There is a tie for 3rd place, so your query needs to be dynamic enough to return all 4 customers who match the criteria, without hardcoding anything like 4 in your query.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!