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


Please Help Members By Posting Answers For Below Questions

What do you understand by a stored procedure?

605


What is sql collation?

654


Does order by actually change the order of the data in the tables or does it just change the output?

678


What will be the maximum number of index per table?

589


What is right outer join in sql server joins?

690






What is the difference between ‘having’ clause and a ‘where’ clause?

551


What is the difference between count and distinct count?

464


When I run the sql server 2000 setup, it just hangs. What do I do?

653


How to handle error or exception in sql?

532


How is a full-text index updated?

540


do views contain data ?

588


What are the different subsets of sql?

951


How many columns can we include on clustered index ?

511


What is a collation?

594


Can binary strings be converted into numeric or float data types?

555