Skip to content

Instantly share code, notes, and snippets.

@abbood
Created October 13, 2020 08:10
Show Gist options
  • Save abbood/80940e73b7df4e4373949458107fa521 to your computer and use it in GitHub Desktop.
Save abbood/80940e73b7df4e4373949458107fa521 to your computer and use it in GitHub Desktop.
find top SO users by location and language
select
distinct u.id as [User ID],
u.displayname as [User Name],
u.reputation as [User Rep]
from users u
join badges b
on u.id = b.userid
where upper(u.location) like upper('%' + ##YourLocation:string## + '%') -- uppercase location--
and UPPER(b.name) LIKE UPPER('%' + ##Tag:string## + '%')
ORDER BY u.id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment