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 action plan is preferred if sql server is not responding?

1097


Explain external key management in sql server 2008

883


What program is used to store the data source file?

958


What is the difference between left and right outer join?

1056


Explain syntax for dropping triggers?

923


Explain indexing and what are the advantages of it?

1019


What is difference between sql and sql server?

990


What is the default port for SQL Server over a firewall?

1086


How to implement service broker?

1000


What are the different types of collation sensitivity?

1112


Find columns used in stored procedure?

984


How does index makes search faster?

968


Write a query for primary key constraint with identity key word?

1021


Can the “if update (colname)” statement be used in a delete trigger?

988


What is self join in sql server joins?

1051