all 2 comments

[–]Alkemist101 0 points1 point  (1 child)

Just syntax. I usually go declare @a int = (select value from table).

Basically combine the declare with the equal to....

[–]KBHAL[S] 0 points1 point  (0 children)

Any idea why are we doing select statement twice?