select Top 5 P.Id,max(U.Upvotes) as most_UpVotes from Pos...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Ask Ubuntu

Q&A for Ubuntu users and developers

select Top 5 P.Id,max(U.Upvotes) as most_UpVotes
from Posts P join Users U on P.Id=U.Id
group by P.Id
order by max(U.UpVotes) desc

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results