How to update salary of employees department wise?
Answer Posted / meher.shareen
begin
update emp set sal=sal+1000
where deptno=10;
update emp set sal=sal+2000
where deptno=20;
update emp set sal=sal+3000
where deptno=30;
update emp set sal=sal+4000
where deptno=40;
end;
Is This Answer Correct ? | 1 Yes | 5 No |
Post New Answer View All Answers
Can we join more than 2 tables in sql?
How do I delete a trigger?
What is assignment operator in pl sql?
What is union?
Explain what is a database?
Name the different types of indexes in sql and define them.
What is file based approach?
Is keyword pl sql?
What are the types of subqueries?
explain commit and rollback in mysql : sql dba
what is primary key? : Sql dba
How do I upgrade sql?
Where the sql database files are stored?
what are the join types in tsql? : Transact sql
- Types of triggers - View - Dcl - Procedures, packages, functions - Metasolve - Can use Dcl in triggers - package case study - Cursor and its types - triggers schedule - Wrap - Why we are using fetch and for in cursor. difference?