Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are provided with the sales and returns for a big-box office supply store. The SALES DATA is in the form of rowID, order number,

You are provided with the sales and returns for a big-box office supply store. The SALES DATA is in the form of rowID, order number, order date, order quantity, total sales, customer name, state, region, product, and ship date. The RETURNS DATA is in the form of order number and status. There is a concern about the number of returns being generated. Please provide the following using Hadoop Hive / SQL-type coding format without a specificed data set:

1. The aggregate amount of returned sales (rounded to the nearest dollar), and number of returns by region.

2. The top 5 (only) customers who have returned products based on aggregate sales (rounded to the nearest dollar) as well as the number of sales and the region.

3. The top 5 (only) products that are returned based on aggregate sales (rounded to the nearest dollar) as well as the number of sales.

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

Records And Database Management

Authors: Jeffrey R Stewart Ed D, Judith S Greene, Judith A Hickey

4th Edition

0070614741, 9780070614741

More Books

Students also viewed these Databases questions

Question

3. How old are they? (children, teens, adults, seniors)

Answered: 1 week ago

Question

Define and measure service productivity.

Answered: 1 week ago