Top Language Golfers II

0

Please login or register to vote for this query.

(click on this box to dismiss)

The Workplace Meta

Q&A about the site for members of the workforce navigating the professional setting

select 
  Posts.OwnerUserID as UserId, 
  Users.DisplayName as UserName, 
  Users.WebsiteURL as Website, 
  '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 Score',
  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 'keg'
group By Posts.OwnerUserID, Users.DisplayName,Users.WebsiteURL,Users.Id
order by PostCount DESC

Enter Parameters

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