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 / dinesh sharma
It Simple
Just Write Down The Query
update table_Name set salary=100 where salary is null
| Is This Answer Correct ? | 12 Yes | 28 No |
Post New Answer View All Answers
What do you understand by the analysis services in sql server?
Explain tables in SQL Azure?
Name some of the open source software that you can use in alternative to SSR?
Explain what stored procedure sp_replcounters is used for? : sql server replication
How to provide default values to stored procedure parameters?
Can two tables share a primary key?
What are scalar functions?
What authentication modes does sql server support?
What is meant by indexing files?
what happens on checkpoint? : Sql server database administration
When to use null data driven subscription?
What happens when transaction log is full?
What are subqueries in sql server? Explain its properties.
Can we store videos inside the sql server table?
What is a view and what are its advantages?