what exactly do u want if its number of contibuters who got 1's,2's,3's or is it the list of all those contributers ?
If it also includes the multiples of 2's and 3's.
Hi vlitim,
Try this
----------------------------- select contributor,
sum(case medal when 1 then 1 else 0 end)as medal1,
sum(case medal when 2 then 1 else 0 end) as medal2,
sum(case medal when 3 then 1 else 0 end) as medal3
from myTable
group by contributor
-----------------------------
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.