Top Users by Country

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)

Joomla Meta

Q&A about the site for Joomla! administrators, users, developers and designers

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

SELECT
    --ROW_NUMBER() OVER(ORDER BY Reputation DESC) AS [#], 
    Users.Id AS [User Link], 
    Users.*,
    Tags
FROM
    Users, Posts
WHERE
    (LOWER(Location) LIKE LOWER('%##CountryName##%') 
    OR LOWER(Location) LIKE LOWER('%##CountryName2##%')) 
    AND Users.Id = Posts.OwnerUserId
ORDER BY
    Reputation DESC;

Enter Parameters

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