When I was trying what kind of construction TSQL in SQL 2008 would allowed I came at this stupid construction.
declare @i bigint = 6
set @i -= @i
print @i
SET @i = 6
set @i -=-@i
print @i
SET @i = 6
set @i -=-+@i
print @i
SET @i = 6
set @i -=-+-@i
print @i
print @i
SET @i = 6
set @i -=-+-+@i
print @i
SET @i = 6
set @i -=-+-+-@i
print @i
the result was
0
12
12
0
0
0
12
My question is where can I find something about this construction "-+-+-" and is there any use for this?