I have a table Survey
with 10 entries. http://i.imgur.com/9pvqWEW.png. 10 users had to submit a ranked list of items 1-5. 1 being most important. How can I write a query that can assign a weight to each column, count the number of times a item occurred in that column, and return a the 5 items in a ranked list 1-5 with its "score". Is this even possible with SQL Server?
So I guess +5 to each item for every time it occurred in column Growth1
. +4 to for column Growth2
etc.
Is that the best way to go about creating a ranked list?
Desired output: possible
1 Market Share 45
2 Disease Profile Development 30
3 Physician Recruitment 28
4 Referrals 21
5 Splitters 18
See Question&Answers more detail:os