DECLARE @i TINYINT DECLARE @s TINYINT SET @i = 0 SET @s = 0 WHILE @i < 10 BEGIN SET @i = @i + 1 SET @s = @s+ @i IF @i < 10 CONTINUE END SELECT @s as 'Sum of first 10 Natural No.s'