Q&A about the site for developers and end users of the Sitecore CMS and multichannel marketing software
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 u.CreationDate < '2014-03-27'
group by (p.OwnerUserId) having count (p.OwnerUserId) = 1)
select count (otp.OwnerUserId) from otp