select UserId, COUNT(case votes.votetypeid WHEN 3 THEN 1 ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Mathematics Meta

Q&A about the site for people studying math at any level and professionals in related fields

select UserId, COUNT(case votes.votetypeid WHEN 3 THEN 1 ELSE 0 END) as n
from votes
group by UserId
order by n desc

Enter Parameters

Options:
Switch to main site
loading Hold tight while we fetch your results