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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!