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

Can we linked SharePoint to a SQL database?

969


What is the use of set nocount on/off statement?

1026


Explain identity in sql server?

949


How to check if stored procedure is running in sql server?

959


Can we check locks in database? If so, how can we do this lock check?

892


What is the usage of the sign function?

993


What is NOT NULL Constraint in sql server 2012?

934


what is isolation level at dead lock?

2088


What is the contrast between sql and pl/sql?

1074


What is ms sql server triggers?

942


what is a check constraint?

1037


What are scalar functions in sql?

1077


What is Cross Join and in which scenario do we use Cross Join?

973


How to concatenate two binary strings together?

1047


How will you make an attribute not process? : sql server analysis services, ssas

1008