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

What does <> symbol mean?

933


What is Transparent Data Encryption?

957


What is the new security features added in sql server 2016? : sql server security

1074


What are the differences between clustered and non-clustered index?

978


Where do we use trace frag?

985


Does sql server 2000 full-text search support clustering?

832


What are the properties of the relational tables?

851


How do we upgrade from SQL Server 6.5 to 7.0 and 7.0 to 2000?

1965


What is temporary stored procedure?

911


Your table has a large character field there are queries that use this field in their search clause what should you do?

859


Explain features and concepts of analysis services?

949


what types of replication are supported in sql server? : Sql server database administration

986


Explain nested join?

939


What is the partitioning method?

993


Once setting replication, can you have distributor on sql server 2005, publisher of sql server 2008?

923