Q&A for users and developers of the Cardano cryptocurrency ecosystem
SELECT TOP(##num?100##) RANK() OVER(ORDER BY COUNT(*) DESC) AS Rank, b.UserId AS [User Link], COUNT(*) AS [Count], MAX(b.Date) As [The Most Recent] FROM Badges b INNER JOIN Users u ON b.UserId=u.Id WHERE (b.Name = '##name?Great Answer##') GROUP BY b.UserId ORDER BY COUNT(*) DESC, MAX(b.Date) DESC