Anonymous users (userXXXX) by reputation, last access date, and time since creation

1

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT
  Id AS [User Link],
  Reputation,
  LastAccessDate,
  CreationDate,
  DATEDIFF(mm, CreationDate, GETDATE())/12 AS Years,
  DATEDIFF(mm, CreationDate, GETDATE())%12 AS Months
FROM
  Users
WHERE
  DisplayName LIKE 'user%'
  AND Reputation > 1000
  AND LastAccessDate > DATEADD(MONTH, -6, GETDATE()) 
ORDER BY 
  Reputation DESC

Enter Parameters

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