SyntaxFix
Write A Post
Hire A Developer
Questions
You want:
DECLARE @times int SELECT @times = COUNT(DidWin) FROM thetable WHERE DidWin = 1 AND Playername='Me'
You also don't need the 'as' clause.