with otp as (select OwnerUserId, count (OwnerUserId) as K...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Poker Meta

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

Enter Parameters

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