SELECT * from Badges as badges inner join ( SELECT id,di...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Web Applications Meta

Q&A about the site for power users of web applications

SELECT * from Badges as badges
inner join

(
SELECT id,displayName FROM USERS WHERE LOCATION='South Africa'
 and reputation in(SELECT MAX(Reputation) FROM USERS WHERE LOCATION='South Africa')
) as southAfricaHighestReputation
on badges.userID=southAfricaHighestReputation.id

Enter Parameters

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