Questions with ongoing undelete votes

1

Please login or register to vote for this query.

(click on this box to dismiss)

Portuguese Language

Q&A for linguists, teachers and learners wanting to discuss the finer points of the Portuguese language

SELECT
  'site:///questions/' + CAST(PostsWithDeleted.Id AS VARCHAR(MAX))
    + '|' + CAST(PostsWithDeleted.Id AS VARCHAR(MAX)) AS [Post Link],
  MIN(PostsWithDeleted.CreationDate) AS CreationDate,
  MIN(PostsWithDeleted.DeletionDate) AS DeletionDate,
  COUNT(*) AS UndelVoteCount,
  MIN(Votes.CreationDate) AS FirstUndelVote,
  MAX(Votes.CreationDate) AS LastUndelVote
FROM PostsWithDeleted, Votes
WHERE
  Votes.VoteTypeId = 11
  AND
  Votes.PostId = PostsWithDeleted.Id
  AND
  PostsWithDeleted.PostTypeId = 1
  AND
  PostsWithDeleted.DeletionDate IS NOT NULL
GROUP BY PostsWithDeleted.Id
ORDER BY UndelVoteCount DESC, LastUndelVote DESC, PostsWithDeleted.Id DESC

Enter Parameters

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