Positively scored posts with the most downs


Please login or register to vote for this query.

(click on this box to dismiss)

Bicycles Meta

Q&A about the site for people who build and repair bicycles, people who train cycling, or commute on bicycles

SELECT TOP ##TopN:int?100##
  PostsWithDeleted.Id AS [Post Link],
  'site://q/' + CAST(PostsWithDeleted.Id AS VARCHAR(MAX))
    + '|' + CAST(PostsWithDeleted.Id AS VARCHAR(MAX))
    AS [Deleted Post Link],
  MIN(PostsWithDeleted.Score) AS Score,
  COUNT(*) AS Downs,
  MIN(PostsWithDeleted.OwnerUserId) AS [User Link],
  MIN(PostsWithDeleted.CreationDate) AS CreationDate,
  MIN(PostsWithDeleted.DeletionDate) AS DeletionDate
FROM PostsWithDeleted, Votes
  PostsWithDeleted.Score > 0
  Votes.PostId = PostsWithDeleted.Id
  Votes.VoteTypeId = 3
GROUP BY PostsWithDeleted.Id
ORDER BY Downs DESC, PostsWithDeleted.Id DESC

Enter Parameters

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