Question 1

0

Please login or register to vote for this query.

(click on this box to dismiss)

The following query displays select fields from the Users table. Modify the query to display the users ordered by decreasing reputation.

Skeptics

Q&A for scientific skepticism

select top 10 *
from
(select Id, 
        Title, 
        PostTypeId, 
        Score,
        rank() OVER(PARTITION BY PostTypeId order by Score) as ScoreRankByType,
        max(score) OVER(PARTITION BY PostTypeId) as MaxScoreByType,
        100 * PERCENT_RANK() OVER(PARTITION BY PostTypeId order by Score) as Pct
from posts) t
where Pct > 64 and Pct < 88
;

Enter Parameters

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