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 database trigger and stored procedure?
define join and explain different type of joins? : Sql dba
What is full form of rtm?
Can I join the same table twice?
Why use truncate instead of delete?
What is sorting in sql?
how to check server status with 'mysqladmin'? : Sql dba
GLOBAL TEMPORARY TABLE over Views in advantages insolving mutating error?
how to calculate the difference between two dates? : Sql dba
What are the different types of database management systems?
what is the syntax for using sql_variant_property? : Transact sql
what is a trigger in mysql? : Sql dba
Define tables and fields in a database
What is pl sql record in oracle?
What are the most important characteristics of pl/sql?