Moderators 2020 votes

1

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

select
  u.Id, u.DisplayName, u.Reputation, u.CreationDate, u.UpVotes, u.DownVotes, ROUND(100.0 * u.UpVotes / (u.UpVotes + u.DownVotes), 1) as UpVotePercent,
  v.Name as VoteName, v.Count
from
  Users u left join (
    select v.UserId, vt.Name, count(*) as Count
    from Votes v inner join VoteTypes vt on vt.Id = v.VoteTypeId
    group by v.UserId, vt.Name
  ) v on u.Id = v.UserId
where
  u.Id in (3773011, 3773011, 3773011, 1356107, 1356107, 1356107, 1026459, 1026459, 1026459, 1459669, 1459669, 1459669, 2370483, 2370483, 2370483, 3956566, 3956566, 3956566, 1839439, 1839439, 1839439)
order by
  u.DisplayName, v.Name

Enter Parameters

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