select * from users

0

Please login or register to vote for this query.

(click on this box to dismiss)

Gardening and Landscaping

Q&A for gardeners and landscapers

Select  top(1)DisplayName, count(badges.name)over(partition by users.displayname)
From Users  right JOIN Badges
ON Users.Id = Badges.UserId
Where Users.Location = 'South Africa'
AND Badges.Name = 'Enlightened'
AND Badges.Date LIKE '%2016%'

--order by count(badges.name) desc

Enter Parameters

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