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
why does the selected column have to be in the group by clause or part of an aggregate function? : Sql dba
Can we call stored procedure in function?
What is the usage of when clause in trigger?
What is pl sql record in oracle?
Can we join more than 2 tables in sql?
what is csv? : Sql dba
What is foreign key in sql with example?
What is pl/sql table? Why it is used?
Does sap use sql?
How to generate a salary slip like jan 1000 1000 feb 1000 2000 ... dec 1000 12000
Can we update views in sql?
what tools available for managing mysql server? : Sql dba
What does closing a cursor do?
Explain scalar functions in sql?
Are ddl triggers fired for ddl statements within a pl/sql code executed using the dbms.sql package?