Number of Medals (1=Gold, 2=Silver, 3=Bronze)

1

Please login or register to vote for this query.

(click on this box to dismiss)

Computational Science

Q&A for scientists using computers to solve scientific problems

DECLARE @UserId int = ##UserId## 

SELECT 
    Count(*) AS ClassCount,
    Class
FROM 
    Badges
WHERE 
    UserId = @UserId
GROUP BY 
    Class
ORDER BY 
    Class DESC

Enter Parameters

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