Percentage of questions/answer among the users with the most posts


Please login or register to vote for this query.

(click on this box to dismiss)

Constructed Languages

Q&A for designers and users of artificial or invented languages, consciously developed instead of having developed naturally

; with qacounts_cte AS
  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

SELECT TOP(##num?500##)
uid AS [User Link],
udn AS [Display Name],
ROUND(QCount*100.0/PCount,2) AS percQ,
ROUND(ACount*100.0/PCount,2) AS percA,
ACount, QCount, PCount
FROM qacounts_cte

Enter Parameters

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