Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Other Development Tools
 How to find outtop 3 salespersons by monthly sales

Author  Topic 

datakeyword
Starting Member

10 Posts

Posted - 2012-10-24 : 03:11:23
Hi, all,

if i have two data file with monthly sales, how can i find out the top 3 salespersons quickly? I search for google and find a post, it is by R and another tool esProc, but i still don't know exactly how to do? anyone other solutions?

nigelrivett
Master Smack Fu Yak Hacker

3385 Posts

Posted - 2012-10-24 : 04:09:15
I would import them into sql server then run a query - what do you have available and what is the structure of the files.
You could maybe use an xml app.

I suspect that this isn't all you will want to do with the data so you should think about longer term design.

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

garyjohn
Starting Member

7 Posts

Posted - 2013-02-28 : 02:00:26
Group by salesman in the Contract table to calculate the total sales amount of each salesman. Select the top 3 salesman by their total sales amount. Group the record group by "product" category and compute the total sales amount of each group, ie, the total sales amount of each product category. And then sort and get a result.

Just for a reference of esProc, R is also very easy, but there is still a little different from esProc.

These two tools are good choice for those who don't have very high SQL knowledge.But for SQL users, they are also much easier and more convenient, I think.

business analyst, marketing director
Go to Top of Page
   

- Advertisement -