select distinct owneruserid from posts p join users u on ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Ask Patents Meta

Q&A about the site for people interested in improving and participating in the patent system

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

Enter Parameters

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