Most upvoted/downvoted questions/answers

0

Please login or register to vote for this query.

(click on this box to dismiss)

Posts of specified kind with most votes of specified kind

Cognitive Sciences Meta

Q&A about the site for practitioners, researchers, and students in cognitive science, psychology, neuroscience, and psychiatry

-- Count: Number of posts
-- PostTypeId: Post type: Question (1), Answer (2)
-- VoteTypeId: Vote type: Upvote (2), Downvote (3)

select top ##Count:int?100##
  count(v.PostId) as VoteCount,
  p.Score,
  p.CreationDate,
  v.PostId AS [Post Link]
from votes v 
  inner join posts p on p.Id = v.PostId
where
  p.PostTypeId = ##PostTypeId:int?1## and
  v.VoteTypeId = ##VoteTypeId:int?2## and
  p.CreationDate >= ##CreationDate:string?2019-12-31## and
  UPPER(p.Tags) like UPPER('%<##TagName?CSS##>%')
group by
  p.CreationDate,
  v.PostId,
  p.Score
order by
  Score desc

Enter Parameters

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