How to update salary of employees department wise?
Answer Posted / manoranjan sethy
UPDATE EMP
SET SAL=DECODE (
DEPTNO,
10, SAL+SAL*0.1,
20, SAL+SAL*0.2,
30, SAL+SAL*0.3,
40, SAL+SAL*0.4,
'NA'
)
/
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is the difference between explicit and implicit cursors in oracle?
How does postgresql compare to oracle/db2/ms sql server/informix?
Does user triggers have entry for trigger with compilation errors?
Why do we use procedures?
Mention what are the benefits of pl/sql packages?
What is a primary key called that is made up of more than one field?
how to drop an existing view in mysql? : Sql dba
What programs use sql?
how to write date and time literals? : Sql dba
how to enter characters as hex numbers? : Sql dba
Compare sql & pl/sql
How does sql*loader handles newline characters in a record? : aql loader
Does execute immediate commit?
what is view? : Sql dba
Can we use delete in merge statement?