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 sql and t-sql? : Transact sql
What is a parameter query?
What are the types of optimization?
Is it important to partition hard disk?
What is ttitle and btitle?
Can you load data into multiple tables at once? : aql loader
which tcp/ip port does sql server run on? : Sql dba
Does a user_objects view have an entry for a trigger?
why does the selected column have to be in the group by clause or part of an aggregate function? : Sql dba
what is timestamp in mysql? : Sql dba
What is the command used to fetch first 5 characters of the string?
Define overloaded procedure?
what is the use of friend function? : Sql dba
What is scalar function?
What is cross join example?