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 |
rajnidas
Yak Posting Veteran
97 Posts |
Posted - 2013-11-15 : 00:49:25
|
hi every onei want to update multiple column in one table using with case statement. i need query pls..stdid name subject result marks1 arun chemistry pass 552 alias maths pass 703 babau history pass 554 basha hindi NULL NULL5 hussain hindi NULL nULL6 chandru chemistry NULL NULL7 mani hindi NULL NULL8 rajesh history NULL NULL9 rama chemistry NULL NULL10 laxman maths NULL NULLThanks |
|
bandi
Master Smack Fu Yak Hacker
2242 Posts |
Posted - 2013-11-15 : 01:57:10
|
Hi,What should be the result of above table post UPDATE--Chandu |
 |
|
bandi
Master Smack Fu Yak Hacker
2242 Posts |
Posted - 2013-11-15 : 01:59:43
|
UPDATE TableNameSET column1 = CASE WHEN <Condition> THEN SomeVlaue ELSE OtherValue END ,column2 = 'Something'--Chandu |
 |
|
|
|
|