Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / justus

update tablename set salary=100 where salary is null

Is This Answer Correct ?    6 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are clustered and non-clustered index?

1017


what is create database syntax? : Sql server database administration

1115


what is the difference between a primary key and a unique key? : Sql server database administration

1015


What is attribute relationships, why we need it? : sql server analysis services, ssas

980


How to download and install sql server 2005 books online?

1203


Do you know what is fill factor and pad index?

1010


What do you mean by a dependent functionality in a build?

1164


How to modify existing triggers using "alter trigger"?

1025


How to verify the port number of the sql server?

1172


How to drop an existing stored procedure in ms sql server?

1042


Do you know what is sql service broker?

1103


What is schemabinding a view?

927


Explain different types of BACKUPs avaialabe in SQL Server? Given a particular scenario, how would you go about choosing a backup plan?

1044


What is the difference between varchar and varchar(max) datatypes?

1086


What is the use of @@spid?

1009