DECLARE @ctr TINYINT DECLARE @sum TINYINT SET @ctr = 0 SET @sum = 0 WHILE @ctr < 5 BEGIN SET @ctr = @ctr + 1 SET @sum = @sum + @ctr IF @ctr > 5 BREAK END SELECT @sum as 'Sum of First 5 Natural No.s'