select users.id from users join posts p on users.id = p....

0

Please login or register to vote for this query.

(click on this box to dismiss)

Music Fans

Q&A for music historians, critics, and fans

--select * from posttypes;

select users.id from users 
    join posts p on users.id = p.OwnerUserId and PostTypeId = 1
    where users.location like '%Russia%' and year(p.creationDate) = 2016 and p.tags like '%SQL%' 
    group by users.id


/*
select count(a.id) from
    (select users.id from users 
    join posts p on users.id = p.OwnerUserId and PostTypeId = 1
    group by users.id) a
    left outer join posts on a.id = posts.OwnerUserId and PostTypeId = 2
    where posts.id is NULL

Enter Parameters

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