Answered step by step
Verified Expert Solution
Link Copied!

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

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

Database Processing

Authors: David M. Kroenke, David Auer

11th Edition

B003Y7CIBU, 978-0132302678

More Books

Students also viewed these Databases questions

Question

Question Who can establish a Keogh retirement plan?

Answered: 1 week ago