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 |
|
rahulwalls
Starting Member
1 Post |
Posted - 2005-07-19 : 03:49:47
|
| Hi,I have table with 2 colsName GenderA MB MC FD ME FF F......I need to write a single query which will change the value from M TO F and F TO M of the Gender ColumnIs it possible pls helpThanksRahul |
|
|
AndyB13
Aged Yak Warrior
583 Posts |
Posted - 2005-07-19 : 03:58:52
|
TryUPDATE YourTableSET Gender = CASE WHEN Gender = 'M' THEN 'F' ELSE 'M' END AndyBeauty is in the eyes of the beerholder |
 |
|
|
|
|
|