I am trying to create a derived field that will show a certain number of leave accrual hours based on an employees length of service. If anyone with over 14 years receives 14 hours how do I write that? Here is what I have:
@DECODE(REPORTS.V_EMPLOYEE.YEARSSERVICE,' 0','8 hrs','1','8 hrs',' 2','8 hrs','3','8 hrs',' 4','10 hrs','5','10 hrs','6','10 hrs','7','10 hrs','8','10 hrs','9','10 hrs','10','12 hrs','11','12 hrs','12','12 hrs','13','12 hrs','14','14 hrs')
I know there has to be an easier way than typing out all each year of service.
THANKS!
@DECODE(REPORTS.V_EMPLOYEE.YEARSSERVICE,' 0','8 hrs','1','8 hrs',' 2','8 hrs','3','8 hrs',' 4','10 hrs','5','10 hrs','6','10 hrs','7','10 hrs','8','10 hrs','9','10 hrs','10','12 hrs','11','12 hrs','12','12 hrs','13','12 hrs','14','14 hrs')
I know there has to be an easier way than typing out all each year of service.
THANKS!