Two (maybe more) interpretations:
1. Find the first emp_id from cursor1 and use that emp_id in cursor2.
Fetch empid into a variable and use that variable in cursor2.
2. Find all the emp_id's from cursor 1 and find all the depts that correspond.
Fetch the emp_id's into an array, or write them to a temp table.
Rewrite cursor 2 to be an in condition, rather than an = condition. Jim
oracle, vb