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 salary of employees department wise?

Answer Posted / k v koteswara rao

UPDATE employees SET salary=DECODE(department_id,10,salary+1000,20,salary+2000,30, salary+3000,salary);

Is This Answer Correct ?    18 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is auto increment? : Sql dba

1018


what are the authentication modes in sql server? How can it be changed? : Sql dba

1442


Difference between truncate, delete and drop commands?

1091


What is the difference between rename and alias?

1351


What is the process of debugging?

1080


What is the difference between syntax error and runtime error?

1148


What are crud methods?

1042


what are the join types in tsql? : Transact sql

1072


Suppose a student column has two columns, name and marks. How to get name and marks of the top three students.

1039


What does pragma mean?

1063


Is like operator in sql case sensitive?

1033


What is oracle and pl sql?

1125


Is natural join and inner join same?

933


Can %notfound return null after a fetch?

1067


What is sql prepared statement?

991