Top Language Golfers, with min number of answers

1

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow Meta en español

Preguntas y respuestas sobre el sitio para programadores y profesionales de la informática

select
  UserId, UserName, Profile, PostCount, Score, Average, FirstPost, LastPost, Tenure
from (
select 
  Posts.OwnerUserID as UserId, 
  Users.DisplayName as UserName, 
  'https://codegolf.stackexchange.com/users/' + CAST(Users.Id as VARCHAR) + '/' as Profile,
  count(*) as PostCount, 
  sum(Posts.Score) as Score, 
  sum(Posts.Score) / CAST(count(*) AS FLOAT) as Average,
  min(Posts.CreationDate) as FirstPost,
  max(Posts.CreationDate) as LastPost,
  DATEDIFF(dd, min(Posts.CreationDate),max(Posts.CreationDate)) as Tenure
  
from posts
INNER JOIN Users on Users.Id = Posts.OwnerUserID
where lower(Posts.Body) like '<h_>%' + lower('##Lang##') + '%</h_>%'
group By Posts.OwnerUserID, Users.DisplayName,Users.WebsiteURL,Users.Id
) as data
where PostCount > ##Minposts:int?5##
order by Average DESC

Enter Parameters

Options:
Switch to main site
loading Hold tight while we fetch your results