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 example of procedure?
Can we rollback delete command?
Why do we need unique key in a table?
How do I get sql certification?
how to load data files into tables with 'mysqlimport'? : Sql dba
Why use subqueries instead of joins?
What is use of trigger?
Why is nosql good?
How do I use google cloud in sql?
how to use 'mysql' to run sql statements? : Sql dba
How to avoid using cursors? What to use instead of cursor and in what cases to do so?
Can we use join in subquery?
Why do we use procedures?
What is raid? How does it help storage of databases?
What is a recursive join sql?