Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SQL ***** the tables exists in sql live already OE.CUSTOMERS OE.ORDERS OE.ORDER_ITEMS Answer the following questions. For analysis purposes, Decision-Makers want to classify the Customers

SQL *****

image text in transcribedimage text in transcribed

the tables exists in sql live already

OE.CUSTOMERS

OE.ORDERS

OE.ORDER_ITEMS

Answer the following questions. For analysis purposes, Decision-Makers want to classify the Customers according to the Turnover of each one according to the following: The Turnover of a customer is the total amount of all his Orders. This data is not in the DB tables; therefore, you need to calculate it in order to determine the Customer Type. The Type of a customer depends on his Turnover. We expect three types of customers noted 'A', 'B' and 'C'. The Type is: A if the Turnover > Avg_Turnover (where Avg_Turnover is the Average Turnover of all customers). 'B' if 0.5 * Avg_Turnover Turnover Avg_Turnover (where Avg_Turnover is the Average Turnover of all customers). 'B' if 0.5 * Avg_Turnover Turnover

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

Big Data Fundamentals Concepts, Drivers & Techniques

Authors: Thomas Erl, Wajid Khattak, Paul Buhler

1st Edition

0134291204, 9780134291208

More Books

Students also viewed these Databases questions

Question

How do Data Types perform data validation?

Answered: 1 week ago

Question

How does Referential Integrity work?

Answered: 1 week ago