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.

Craft CMS

Q&A for administrators, end users, developers and designers for Craft CMS

select Id, 
        Title, 
        PostTypeId, 
        Score,
        max(score) OVER(PARTITION BY PostTypeId)
from posts;

Enter Parameters

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