SELECT u.Id AS [User Link], SUM(CASE WHEN v.VoteTypeId = ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Japanese Language

Q&A for students, teachers, and linguists wanting to discuss the finer points of the Japanese language

SELECT
  u.Id AS [User Link],
  SUM(CASE WHEN v.VoteTypeId = 2 THEN 1 ELSE 0 END) AS "UpVotes",
  SUM(CASE WHEN v.VoteTypeId = 3 THEN 1 ELSE 0 END) AS "DownVotes"
FROM
  Users AS u
  INNER JOIN Posts AS p
    ON u.Id = p.OwnerUserId
  INNER JOIN Votes AS v
    ON p.Id = v.PostId
GROUP BY
  u.Id

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results