Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using In-Line Views: Product a report of Orion Star Sales Force employees' aggregate sales in 2007. Select Country, First_Name, Last_Name, Value_Sold, Orders, and Avg_Order columns

Using In-Line Views:

Product a report of Orion Star Sales Force employees' aggregate sales in 2007. Select Country, First_Name, Last_Name, Value_Sold, Orders, and Avg_Order columns by joining orion.order_fact and orion.sales tables on Employee_ID. Group the report by Country, First_Name, Last_Name. Include only employees having an aggregate Value_Sold of $200.00 or more. Order the results by Country, Value_Sold (descending), and Orders (descending).

1. Calculate Value_Sold by summing Total_Retail_Price

2. Calculate Orders by using the COUNT(*) function to count the number of rows returned for each employee

3. Calculate Avg_Order by dividing Value_Sold by Orders

4. Title the report as indicated in the sample output

Use Proc SQL

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

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions

Question

2. Are you varying your pitch (to avoid being monotonous)?

Answered: 1 week ago

Question

3. Are you varying your speaking rate and volume?

Answered: 1 week ago