Anda di halaman 1dari 3

Query

select etl.element_name,
e.element_type_id,
e.input_currency_code,
ctl.classification_name,
p_type.meaning processing_type

from pay_element_types_f e,
pay_element_types_f_tl etl,
pay_element_classifications c,
pay_element_classifications_tl ctl,
hr_lookups p_type

where e.element_type_id = etl.element_type_id
and etl.language = userenv('LANG')
and (e.business_group_id + 0 = :ctl_globals.business_group_id or
(e.business_group_id is null and
e.legislation_code = :ctl_globals.legislation_code))
and :ctl_globals.session_date between e.effective_start_date and
e.effective_end_date
and e.classification_id = c.classification_id
and c.classification_id = ctl.classification_id
and ctl.language = userenv('LANG')
and (p_type.lookup_type = 'PROCESSING_TYPE' and
p_type.lookup_code = e.processing_type)
and etl.element_name LIKE '------------'
order by etl.element_name

Anda mungkin juga menyukai