SELECT TOP (2) u.DisplayName ,SUM(v.BountyAmount) From Vo...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT TOP (2) 
 u.DisplayName 
,SUM(v.BountyAmount)  
From Votes v
inner join Users u 
on u.Id=v.UserId 
GROUP BY u.DisplayName 
ORDER BY SUM(v.BountyAmount)  DESC

Enter Parameters

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