Show Vote History for a Post

2

Please login or register to vote for this query.

(click on this box to dismiss)

Emacs

Q&A for those using, extending or developing Emacs

-- Post Vote History
--
declare @PostId int = ##PostId##

select v.Id,
  v.PostId as [Post Link],
  v.UserId as [User Link],
  v.CreationDate,
  v.BountyAmount,
  v.VoteTypeId,
  vt.Name
from Posts p
join Votes v on (p.Id = v.PostId)
join VoteTypes vt on (v.VoteTypeId = vt.Id)
where p.Id = @PostId
order by v.CreationDate desc

Enter Parameters

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