Recently Active Users (within last 30 days) with active Posts

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

select U.DisplayName, 
-- U.Reputation, U.LastAccessDate,
COUNT(P.Id) As PostCount
     from Users as U
inner join 
        Posts as P
On P.OwnerUserID=U.Id
     
        where P.CreationDate > GETUTCDATE()-30 and
      U.LastAccessDate > GETUTCDATE()-30

GROUP BY U.DisplayName order by PostCount DESC;

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results