SQL - Stored Procedures and Functions
Given this procedure snippet:
What is the output?
DECLARE @sum INT = 0;
DECLARE @n INT = 1;
WHILE @n <= 4
BEGIN
SET @sum = @sum + @n;
SET @n = @n + 1;
END
SELECT @sum;
What is the output?
