Question 1


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.


Q&A for scientific skepticism

select id,
      rank() OVER(PARTITION BY OwnerUserId order by CreationDate asc) as promo_level
from posts
where OwnerUserId in 
(select id as OwnerUserId from users 
where CreationDate < CONVERT(date, dateadd(year, -2, getdate()))

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results