What´s the name of the behavior in the statement below?
Create table dbo.Foo(name varchar(10))
insert dbo.Foo (name)
select 'Weird'
union
select 'SQL'
union
select 'Server'
union
select 'behavior'
declare @title varchar(max)
set @title = ''
select @title = name + ' ' + @title from dbo.Foo
select @title
--returns 'Weird SQL Server behavior'
This can also be done with integers. I want to know the name for this behavior, that mix scalar and set operations.