select p.owneruserid, p.tags from posts p join users u on...

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 p.owneruserid, p.tags from posts p join users u on p.owneruserid=u.id
where lower(location) like '%russia%' and year(p.creationdate)=2016
group by owneruserid, p.creationdate, p.tags
having count(case when posttypeid=1 then 1 end)=1  
and count(case when tags like '%sql%'  then 1 end)>0

Enter Parameters

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