Using SELECT, you can update multiple variables at once.
DECLARE @Variable1 INT, @Variable2 VARCHAR(10)
SELECT @Variable1 = 1, @Variable2 = 'Hello'
PRINT @Variable1
PRINT @Variable2
1
Hello
When using SELECT to update a variable from a table column, if there are multiple values, it wi...