Q&A for professional robotic engineers, hobbyists, researchers and students
/*select Id,Title, PostTypeId,Score ,RANK() OVER (PARTITION BY PostTypeId ORDER BY Score DESC) AS ScoreRankByType ,max(Score) OVER (PARTITION BY PostTypeId ) AS MaxScoreByType from Posts */ select top 10 Id ,Title ,PostTypeId ,Score ,RANK() OVER (PARTITION BY PostTypeId ORDER BY Score DESC) AS ScoreRankByType ,max(Score) Over (PARTITION BY PostTypeId) AS MaxScoreByType from Posts /* select PostType, max(Score) group by PostType into #maxScore from Posts*/