lr19-6

0

Please login or register to vote for this query.

(click on this box to dismiss)

Bicycles

Q&A for people who build and repair bicycles, people who train cycling, or commute on bicycles

SELECT DisplayName, c
FROM Users u JOIN (SELECT OwnerUserId, COUNT(OwnerUserId) c
 FROM Posts
 WHERE YEAR(CreationDate) = 2017
 GROUP BY OwnerUserId
 HAVING COUNT(OwnerUserId) = (SELECT MAX(o.c)
 FROM (SELECT OwnerUserId, COUNT(OwnerUserId) c
  FROM Posts
  WHERE YEAR(CreationDate) = 2017
  GROUP BY OwnerUserId) o)) o ON (u.Id=o.OwnerUserId)
 ;

Enter Parameters

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