I am trying to create a report that will calculate a field depending on years of service.
I need to determine years of service first then calculate an amount for # of years.
For example if an employee has less than 5 years then I need to calculate a field by 1%
ELSE
IF YEARS IS LT 10 YEARS THAN CALCULATE BY 2%
ELSE
iF YEARS IS lt 15 THEN CALCULATE BY 3%
ELSE
IF YEARS IS LT 20 THEN CALCULATE BY 4%
ELSE
iF YEARS gt 20 THEN CALCULATE BY 5%.
WE ARE ORACLE BASE AND USING REPORTSMITH VERSION 3.10
Can you do this statement using decode?
I need to determine years of service first then calculate an amount for # of years.
For example if an employee has less than 5 years then I need to calculate a field by 1%
ELSE
IF YEARS IS LT 10 YEARS THAN CALCULATE BY 2%
ELSE
iF YEARS IS lt 15 THEN CALCULATE BY 3%
ELSE
IF YEARS IS LT 20 THEN CALCULATE BY 4%
ELSE
iF YEARS gt 20 THEN CALCULATE BY 5%.
WE ARE ORACLE BASE AND USING REPORTSMITH VERSION 3.10
Can you do this statement using decode?