select count(*) from ( select owneruserid from posts p jo...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Chess

Q&A for serious players and enthusiasts of chess

select count(*) from (
select owneruserid from posts p join users u on p.owneruserid=u.id
where lower(location) like '%russia%' and year(p.creationdate)=2016
group by owneruserid
having count(case when posttypeid=1 then 1 end)=1  
and count(case when tags like '%sql%'  then 1 end)=1
) x

Enter Parameters

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