how to update a null value field in sql server
eg
a table contains 3 fields id,name,salary
and 3 records
salary of 1 record is null
i want update the nullfield
111 arun 300
112 ddd 200
113 ttt null
i want to update table with add 100 to every record include null
after updation
the recrds should be
111 arun 400
112 ddd 300
113 ttt 100
Answer Posted / mohan
update #temp
set sal = COALESCE(sal+100,100)
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Is mysql the same as sql server?
How do I install only the client tools of sql server 2000?
What is a livelock?
Explain the flow of creating a cube? : sql server analysis services, ssas
How do I view a stored procedure in sql server?
How can you ensure that the database and sql server based application perform well?
What were the latest updates to SQL Azure service?
How to return the date part only from a sql server datetime datatype?
What is precedence constraint?
What are the different type of replication in sql server?
What are types of scd? : sql server analysis services, ssas
How to use go command in "sqlcmd"?
What is inline variable assignment?
How to change the system date and time from SQL Plus Terminal ?
How column data types are determined in a view?