Oldest uninformed accounts

0

Please login or register to vote for this query.

(click on this box to dismiss)

List the oldest users who don't have the Informed badge

Unix and Linux

Q&A for users of Linux, FreeBSD and other Un*x-like operating systems

-- list the oldest users who don't have the Informed badge
SELECT TOP 2000 
  ROW_NUMBER() OVER (ORDER BY CreationDate ASC) AS Row, 
  Id AS [User Link], 
  Reputation, 
  CreationDate
FROM users 
WHERE Id NOT IN
  (SELECT u.Id from Users u 
   JOIN Badges b ON b.userid = u.id and b.name = 'Informed')
   AND (reputation > 100)
ORDER BY CreationDate ASC

Enter Parameters

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