select count(*) from( select distinct owneruserid from po...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Sitecore Meta

Q&A about the site for developers and end users of the Sitecore CMS and multichannel marketing software

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

Enter Parameters

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