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

0

Please login or register to vote for this query.

(click on this box to dismiss)

Spanish Language

Q&A for linguists, teachers, students and Spanish language enthusiasts in general wanting to discuss the finer points of the language

select UserId, SUM(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 meta site
loading Hold tight while we fetch your results