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 |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2005-07-15 : 07:49:12
|
| Alaa writes "Select a,b //what i want to makeif(a>b)thenc=a\\new fieldelsec=b From mytablePlz help" |
|
|
AndyB13
Aged Yak Warrior
583 Posts |
Posted - 2005-07-15 : 08:06:44
|
Try SELECT CASE WHEN a > b THEN a ELSE b END AS CAndyBeauty is in the eyes of the beerholder |
 |
|
|
|
|
|