>select @MyVar = (select MyColumn1 from MyTable where MyColumn2 = 'SomeValue') >>
select @MyVar = MyColumn1 from myTableThe difference between these two methods is that the first will always change the @MyVar variable. In the second case, if the select statement does not produce rows, the original value of @MyVar will not change.