How to update salary of employees department wise?
Answer Posted / ajit nayak
update emp
set sal = case Deptno when 10 then 1000
when 20 then 2000
when 30 then 3000
else 0
end;
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
How do I remove all records from a table?
How to add a column ‘salary’ to a table employee_details?
How does a trigger work?
what is the difference between sql and t-sql? : Transact sql
Can a foreign key be a duplicate?
What is pl/sql table? Why is it used?
What is using in sql?
What is bulk collect in pl sql?
what is a field in a database ? : Sql dba
Explain the significance of the & and && operators in pl sql.
What does <> sql mean?
What is the difference between in and between in sql?
What is write ahead logging in sql server?
What is sqlexception in java?
Explain the difference between drop and truncate commands in sql?