Providing Search Option to Limit to questions placed by active users?

0

Please login or register to vote for this query.

(click on this box to dismiss)

https://meta.stackexchange.com/questions/138343/providing-search-option-to-limit-to-questions-placed-by-active-users

Stack Overflow

Q&A for professional and enthusiast programmers

-- active: Months user last active

select top 1000 
       p.id as [Post Link]
     , p.score
     , p.creationdate
     , datediff(mm, u.lastaccessdate,  getdate()) [User last seen]
from posts p
inner join users u on p.owneruserid = u.id
where p.posttypeid = 1
and p.answercount = 0
and p.closeddate is null
and datediff(mm, u.lastaccessdate,  getdate()) < ##active:int?2##
and p.tags like '%<'+ ##tag:string?haskell## + '>%'
order by p.creationdate desc

Enter Parameters

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