Top Users by Country

0

Please login or register to vote for this query.

(click on this box to dismiss)

Esperanto Language

Q&A for teachers and students of the Esperanto language

SELECT 
    (CASE WHEN LOWER(Location) LIKE '%bulgaria%' THEN 'Bulgaria'
    WHEN LOWER(Location) LIKE '%canada%' THEN 'Canada'
    WHEN LOWER(Location) LIKE '%chile%' THEN 'Chile'
    WHEN LOWER(Location) LIKE '%china%' THEN 'China'
    WHEN LOWER(Location) LIKE '%colombia%' THEN 'Colombia'
    WHEN LOWER(Location) LIKE '%costa rica%' THEN 'Costa Rica'
    WHEN LOWER(Location) LIKE '%croatia%' THEN 'Croatia'
    WHEN LOWER(Location) LIKE '%Czech%' THEN 'CR'
    END) as country, COUNT(Id)
FROM 
    Users
WHERE
    Reputation >= 1000
GROUP by (CASE WHEN LOWER(Location) LIKE '%bulgaria%' THEN 'Bulgaria'
    WHEN LOWER(Location) LIKE '%canada%' THEN 'Canada'
    WHEN LOWER(Location) LIKE '%chile%' THEN 'Chile'
    WHEN LOWER(Location) LIKE '%china%' THEN 'China'
    WHEN LOWER(Location) LIKE '%colombia%' THEN 'Colombia'
    WHEN LOWER(Location) LIKE '%costa rica%' THEN 'Costa Rica'
    WHEN LOWER(Location) LIKE '%croatia%' THEN 'Croatia'
    WHEN LOWER(Location) LIKE '%Czech%' THEN 'CR'
    END)

Enter Parameters

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