I am trying to create a report that will list the employees general deductions from the GENL_DEDUCTION table and the deduction from the employees pay check from the PAY_DEDUCTION table. The problem is that if the deduction is not listed on the PAY_DEDUCTION table (because nothing came out of the employees check) I need it to say $0.
So, in my selection criteria I have:
Any of the following apply:
1. data field DED.DEDCD (not sure if that's right) is equal to formula (SELECT MAX(A.PAY_END_DT) FROM PS_PAY_DEDUCTION A WHERE A.DEDCD = PS_GENL_DEDUCTION.DEDCD AND A.PAY_END_DT < PS_GENL_DEDUCTION.EFFDT)
2. data field DEDCD is null
Thanks for your input!!!
So, in my selection criteria I have:
Any of the following apply:
1. data field DED.DEDCD (not sure if that's right) is equal to formula (SELECT MAX(A.PAY_END_DT) FROM PS_PAY_DEDUCTION A WHERE A.DEDCD = PS_GENL_DEDUCTION.DEDCD AND A.PAY_END_DT < PS_GENL_DEDUCTION.EFFDT)
2. data field DEDCD is null
Thanks for your input!!!