SELECT * FROM Badges AS b INNER JOIN USERS AS u ON b.User...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Physical Fitness

Q&A for physical fitness professionals, athletes, trainers, and those providing health-related needs

SELECT *
  FROM Badges AS b
    INNER JOIN USERS AS u 
        ON b.UserId = u.id 
          WHERE Name = 'Enlightened' 
             AND YEAR(Date) = 2016
                 AND UserId = (SELECT TOP 1 id FROM Users
                                  WHERE Location = 'South Africa' 
                                      ORDER BY Reputation DESC)

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results