Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
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