Question
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
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