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 do you know about system database? : SQL Server Architecture

925


Explain what is lock escalation?

987


What is buffer cash and log cache in sql server?

1051


What is the difference between a primary key and a unique key? Are they the same?

1004


How to create an index on an existing table in ms sql server?

917


What is blocking?

974


Explain indexes disadvantages?

1009


Explain different types of locks in sql server.

1007


What is sql azure database?

204


What is @@rowcount in sql?

947


Do you have any idea about the tcl commands?

909


What is set nocount on?

888


How to change the ownership of a schema in ms sql server?

1087


How do I view views in sql server?

935


What is a join in sql? What are the types of joins?

1005