Users with the highest Profile views / Reputation ratio

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

DECLARE @rank INT = 1
SELECT TOP 256
  ROW_NUMBER() OVER (ORDER BY Users.Id DESC),
  Users.Id AS [User Link],
  Users.Reputation,
  Users.Views,
  CAST(Users.Views AS float) / Users.Reputation AS Ratio
FROM
  Users
Where
  Users.Reputation > 1 AND
  Users.Views > 10000
ORDER BY
  Ratio DESC

Enter Parameters

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