Can anyone give me a example on how to build a cursor with the attribute of another cursor,
for eg:
if cursor1 is
select emp_id, emp_name from emp;
I want to build cursor2 which is select dept_no, dept_name from dept where emp_id = cursor1.emp_id.
Thanks!