SELECT Id, PostTypeId, Score, RANK() OVER (PARTITION BY (...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Robotics

Q&A for professional robotic engineers, hobbyists, researchers and students

SELECT Id, PostTypeId, Score, RANK() OVER (PARTITION BY (PostTypeId)
  ORDER BY (Score) DESC) AS CountRank
FROM Posts
WHERE PostTypeId = 1
ORDER BY CountRank ASC

Enter Parameters

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