Top Users by Country and tags

0

Please login or register to vote for this query.

(click on this box to dismiss)

Created by samliew (http://stackoverflow.com/users/584192/samuel-liew)

Interpersonal Skills

Q&A for people looking to improve their interpersonal communication skills

-- Top Users by Country and tag
-- Created by samliew (http://stackoverflow.com/users/584192/samuel-liew)

SELECT
    count(p.id),
    u.Location
FROM
    Users u
inner join posts p on p.ownerUserid = u.id
inner join posttags pt on pt.postid = p.id
inner join tags t on t.id = pt.tagid
WHERE
    t.tagname='##tagname##'
group by u.Location
ORDER BY
    Location DESC;

Enter Parameters

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