Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please I need help with the question below: --3.Find average sales (Total Due column) for each sales person ID. Select top 3 sales persons with
Please I need help with the question below:
--3.Find average sales (Total Due column) for each sales person ID. Select top 3 sales persons with the greatest amount of sales
This is my code:
select Top 3 SalesPersonID as 'top 3 sales person ID', count(SalesPersonID) as 'average sales'
from Sales.SalesOrderHeader
Group by SalesPersonID
order by 'average sales' DESC;
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