Hi
I have an employee Table , ("EMP") with the fields
Empno, Empname, Sal, Deptno and Job
I need to update my table such that I update all the
salaries
The conditon is
Whenever there are more than 100 employees in any department , then the salary of all the employees in those departments should be doubled .
But there is also one condition . In such departments( where count(employee) >100) ) , the employees who already are having the highest salary in those respective departments should not be updated
How do I do that
Please suggest me an UPDATE statement or a series of UPDATE statements
thanks
I have an employee Table , ("EMP") with the fields
Empno, Empname, Sal, Deptno and Job
I need to update my table such that I update all the
salaries
The conditon is
Whenever there are more than 100 employees in any department , then the salary of all the employees in those departments should be doubled .
But there is also one condition . In such departments( where count(employee) >100) ) , the employees who already are having the highest salary in those respective departments should not be updated
How do I do that
Please suggest me an UPDATE statement or a series of UPDATE statements
thanks