Question 2

0

Please login or register to vote for this query.

(click on this box to dismiss)

Ask Ubuntu

Q&A for Ubuntu users and developers

SELECT Id, Title, PostTypeId, Score, 
dense_rank() OVER (PARTITION BY PostTypeID ORDER BY Score desc) ScoreRankByType,
max(Score) OVER (PARTITION BY PostTypeID) MaxScoreByType
FROM Posts
;

Enter Parameters

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