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
Get step-by-step solutions from verified subject matter experts
