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

update #temp
set sal = COALESCE(sal+100,100)

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about link server in sql server?

1062


What is the difference between a local and a global temporary table?

1123


What are the restrictions while creating batches in sql server?

1062


How to insert a new row into a table with "insert into" statements in ms sql server?

976


How we create SQL Server 2005 Reporting Services ? Give me Sample

1998


What are xml indexes?

954


What is ms sql server service broker?

993


Explain the first normal form(1nf)?

1030


Tell me what is the stuff and how does it differ from the replace function?

983


What are the types of lock supported by ?

1046


what are the critical issues you have resloved in your company

1964


How to create a new schema in a database?

1152


Explain how to maintain a fill factor in existing indexes?

996


What the different types of Replication and why are they used?

1072


Where sql server usernames and passwords are stored in a sql server?

990