I'm not as familiar with SQL Server 2008 and I haven't seen an answer to this question anywhere else. Does TSQL in SQL Server 2008 allow for multiple fields to be set in a single case statement. For instance:
case MyField
when 1 then ThisField = 'foo', ThatField = 'bar'
when 2 then ThisField = 'Mickey', ThatField = 'Mouse'
else ThisField = NULL, ThatField = NULL
end
Since my condition doesn't change, it would be nice to set all fields based on that condition instead of using multiple case statements with a duplicated condition.