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 / dinesh sharma

It Simple
Just Write Down The Query
update table_Name set salary=100 where salary is null

Is This Answer Correct ?    12 Yes 28 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is table constraint?

996


Explain the different index configurations a table can have?

947


State the difference between union and union all?

928


When would you use a before or after trigger?

908


How would you use user_constraints table in DB?

1008


What is a constant or literal in ms sql server?

1048


Tell me what is fill factor?

964


What are the different types of columns types constraints in the sql server?

1080


Explain the difference between clustered and non-clustered index?

923


Can we call stored procedure in trigger?

950


What is the maximum size of column in sql server?

893


What is the contrast between sql and mysql?

1110


Difference between uniqe index and uniqe constraint?

982


Which trace flags are enabled in sql server?

1020


What are subqueries in sql server?

1123