Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
pgmr1998
Yak Posting Veteran
66 Posts |
Posted - 2010-07-28 : 12:26:51
|
| In a select statement,Is there a way to assign a value to a column(rather than use the value from the table) based upon the value in another column? |
|
|
vijayisonly
Master Smack Fu Yak Hacker
1836 Posts |
Posted - 2010-07-28 : 12:29:58
|
| CASE WHEN <another column> = 'something' THEN ' urvalue' ELSE 'somethingelse' END as [Urcolumn] |
 |
|
|
|
|
|