Professional Documents
Culture Documents
CURSOR fetch_det
IS
select
assignment_id,element_entry_id,object_version_number,effective_start_date
from pay_element_entries_f
where element_type_id = 175
and attribute1 is null
and assignment_id in (select assignment_id
from
(select Assignment_id,count(*)
from pay_element_entries_f
where element_type_id = 175
group by Assignment_id
having count(*) > 1))
--and rownum < 3
;