652: a.formula_id,
653: a.effective_start_date,
654: a.effective_end_date
655: from PSB_PAY_ELEMENT_RATES a, 656: PSB_PAY_ELEMENTS b 657: where (a.worksheet_id is null or a.worksheet_id = l_global_worksheet_id)
658: and a.currency_code = l_func_currency
659: and exists
660: (select 1