Please login or register to vote for this query.

(click on this box to dismiss)

Physical Fitness Meta

Q&A about the site for physical fitness professionals, athletes, trainers, and those providing health-related needs

ids as (select p.owneruserid from posts p group by p.owneruserid having datediff(month, min(p.creationdate), getdate())>=11*12+5)
psts as (select p.creationdate, p.owneruserid, from posts p where p.owneruserid in (select * from ids))

main as (select '1' as r
from psts p
left join psts p2 on p.owneruserid = p2.owneruserid
and abs(Datediff(year, p2.creationdate, p.creationdate))<1
where !=
group by p.owneruserid
having count(case when is null then 1 end) = 0)

select count(r) from main;

Enter Parameters

Switch to main site
loading Hold tight while we fetch your results