SELECT TOP(##num?100##) OwnerUserId AS uid, OwnerDisplayN...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Music Fans Meta

Q&A about the site for music historians, critics, and fans

SELECT TOP(##num?100##)
  OwnerUserId AS uid,
  OwnerDisplayName AS udn,
  COUNT(Id) AS Pcount,
  SUM(case when PostTypeId = 1 then 1 else 0 end) AS QCount,
  SUM(case when PostTypeId = 2 then 1 else 0 end) AS ACount
  FROM Posts
  GROUP BY OwnerUserId, OwnerDisplayName
  ORDER BY Count(Id) DESC

Enter Parameters

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