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 trigger price?

537


Where is sql database stored?

514


what is isam? : Sql dba

570


Can we create view in stored procedure?

521


How do you optimize a stored procedure in sql?

497






How is use pl and sql?

549


how to shut down the server with 'mysqladmin'? : Sql dba

541


Explain the insert into statements in sql?

561


how can you create an empty table from an existing table? : Sql dba

656


where are cookies actually stored on the hard disk? : Sql dba

574


What is sqlexception in java?

543


Can you join views in sql?

538


what is an execution plan? When would you use it? How would you view the execution plan? : Sql dba

542


What are the different types of dbmss?

554


Can you inner join the same table?

523