Complete the code to declare a variable named @count as an integer.
DECLARE [1] INT;In SQL, variables are declared with an '@' prefix. So '@count' is the correct variable name.
Complete the code to set the value 10 to the variable @count.
SET [1] = 10;
To assign a value to a variable in SQL, use SET with the variable name including '@'.
Fix the error in the code to correctly set the variable @total to the sum of 5 and 7.
SET [1] = 5 + 7;
Variables in SQL must be referenced with '@' when assigning values.
Fill both blanks to declare a variable @name as VARCHAR(50) and set it to 'Alice'.
DECLARE [1] [2]; SET @name = 'Alice';
Declare the variable with '@name' and specify its type as VARCHAR(50) for text up to 50 characters.
Fill all three blanks to declare @score as INT, set it to 100, and then increase it by 20.
DECLARE [1] [2]; SET [3] = 100; SET @score = @score + 20;
Declare @score as INT, then set @score to 100, and finally add 20 to it.