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
What is a sql trace file?
How do you select unique values in sql?
What is the example of procedure?
Is sql between inclusive?
how to escape special characters in sql statements? : Sql dba
What pl/sql package consists of?
Can we rollback after truncate?
what is 'mysqlimport'? : Sql dba
What is t-sql? : Transact sql
What is localdb mssqllocaldb?
Why do we use sql constraints? Which constraints we can use while creating database in sql?
what are set operators in sql? : Sql dba
What is a sql*loader control file?
Show how functions and procedures are called in a pl/sql block.
Sql technical questions