Query1:Select posts (Id) that have greater CommentCount than FavoriteCount with their corresponding

0

Please login or register to vote for this query.

(click on this box to dismiss)

Anime and Manga

Q&A for anime and manga fans

--Select the top 2 users (Id) and their DisplayName by total BountyAmount


select top 2
u.id, 
u.DisplayName,
sum(v.BountyAmount) total

from users u
join Votes v 
on u.id=v.id 
group by u.id,u.DisplayName
order by total desc
;

Enter Parameters

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