Q&A about the site for enthusiasts and scholars of mythology and folklore
-- Find all users from Latvia with more than 100 badges, -- depicting results staring from the user with the most badges. -- (Show number of badges in the list, as well). SELECT TOP 10 Users.Id, COUNT(Badges.Id) FROM Users INNER JOIN Badges ON Badges.UserId = Users.Id WHERE Users.Location LIKE '%Latvia%' GROUP BY Users.Id