select TOP 1 u.DisplayName, u.Reputation, count(b.Id) as ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Literature Meta

Q&A about the site for scholars and enthusiasts of literature

select TOP 1 u.DisplayName, u.Reputation, count(b.Id) as BadgeCount from Users u
join Badges b ON u.AccountId = b.UserId
 where Location like '%South Africa'
 and year(b.Date) = 2016
 and b.name = 'Enlightened'
 group by u.DisplayName, u.Reputation
 order by u.Reputation

Enter Parameters

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