Q&A about the site for those who base their lives on Jewish law and tradition and anyone interested in learning more
-- Gold Swing Badge Ranking in South Africa -- This query retrieves all the gold java badge users and ranks them according to their gold badge date received. SELECT b.UserId, max(b.Date) DateReceived, u.DisplayName FROM Users u, Badges b WHERE b.name='swing' and u.Id=b.UserId and u.Location like '%South Africa%' GROUP BY b.UserId, u.DisplayName HAVING COUNT(*)>2 ORDER BY DateReceived