Q&A about the site for serious players and enthusiasts of poker
with otp as (select OwnerUserId, count (OwnerUserId) as K from posts p inner join Users u on p.OwnerUserId = u.Id where (PostTypeId = 1 or PostTypeId = 2) and p.CreationDate < '2014-09-27' and datediff(day, u.CreationDate, p.CreationDate) > 180 group by (p.OwnerUserId) having count (p.OwnerUserId) = 1) select count (otp.OwnerUserId) from otp