muralirajan
August 11th, 1999, 07:34 AM
How to find the sum of salary departmentwise after the increment from the following table?
EmpId ** DeptId ** Salary ** %OfIncrement
001 ***** 100 ***** 20000 ***** 30
002 ***** 100 ***** 15000 ***** 25
003 ***** 200 ***** 10000 ***** 15
004 ***** 200 ***** 17500 ***** 10
I want the SQL statement which gives the following
DeptId ***** SumOfSalary
SumOfSalary is the sum of (Salary * %OfIncrement / 100) departmentwise
muralirajan
EmpId ** DeptId ** Salary ** %OfIncrement
001 ***** 100 ***** 20000 ***** 30
002 ***** 100 ***** 15000 ***** 25
003 ***** 200 ***** 10000 ***** 15
004 ***** 200 ***** 17500 ***** 10
I want the SQL statement which gives the following
DeptId ***** SumOfSalary
SumOfSalary is the sum of (Salary * %OfIncrement / 100) departmentwise
muralirajan