Attrition: Reputation>10K Last post < 2012

0

Please login or register to vote for this query.

(click on this box to dismiss)

Ask Ubuntu

Q&A for Ubuntu users and developers

SELECT Top 20 
   u.DisplayName, 
   u.Reputation,
   u.LastAccessDate,
   p.LastPost 
FROM Users u 
INNER JOIN (

   SELECT 
      OwnerUserId, 
      Max(CreationDate) As LastPost
   FROM Posts
   WHERE CreationDate < '2012-01-01'
   GROUP BY OwnerUserId) As p
   
ON u.ID = p.OwnerUserId
WHERE Reputation>30000
And u.LastAccessDate < '2012-01-01'

Enter Parameters

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