My Answers

0

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 DisplayName, 
  Posts.ParentID,
  Posts.CreationDate,
  Count(MyVotes.Id) as VoteCount
from Users 
  inner join Posts on Users.Id = Posts.OwnerUserId 
  left join (select * from Votes where VoteTypeId = 2) as MyVotes
  on Posts.Id = MyVotes.PostId
where Users.Id = 3347858
  and PostTypeId = 2 --1 is Question and 2 is Answer
group by Users.DisplayName, 
  Posts.ParentID,
  Posts.CreationDate

Enter Parameters

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