Q&A for professional and enthusiast programmers
-- Selects the programmers with age lower than 20, ordered -- desc by reputation SELECT TOP (200) ROW_NUMBER() OVER(ORDER BY Reputation DESC) AS [#], Id AS [User Link], Reputation, Location FROM Users WHERE Age <= 20 ORDER BY Reputation DESC;