SELECT top(5) b.Name, COUNT(b.id) as skaits FROM Users as u

0

Please login or register to vote for this query.

(click on this box to dismiss)

Earth Science

Q&A for those interested in the geology, meteorology, oceanography, and environmental sciences

SELECT top(5)
  b.Name, 
  COUNT(b.id) as skaits
FROM Users as u
INNER JOIN Badges as b ON b.userid = u.id
where u.DisplayName like 'Andr%'
group by b.Name 
order by skaits desc

Enter Parameters

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