Users with highest percentage of questions


Please login or register to vote for this query.

(click on this box to dismiss)


Q&A for the craft of professional writing, including fiction, non-fiction, technical, scholarly, and commercial writing

; 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 percentage,
ACount, QCount, PCount
FROM qacounts_cte
WHERE (QCount>=##minq?0##) AND (PCount>=##minp?10##)
ORDER BY percentage DESC

Enter Parameters

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