Hi,
I have a cursor which has 78 fields and i loop through each record and based on few condition ,i call another cursor passing in the value of 1 field(emp_id) into the other cursor and fetch 6 feilds from another table into the second cursor.
Now i have two cursors ,one with 78 fields and one with 6 fields and the common field in those tow is the emp_id how do i combine both and put in one cursor or array.
my requirement is:
1.Get all from employee table(78 fields)
2.Loop through each emp_id and if emp_id>10,000 get salary details from new_salary table
else
get salary details from old_salry table.
now i have two cursors one with employee details and one with employye salary details.How do i combine both.
I have a cursor which has 78 fields and i loop through each record and based on few condition ,i call another cursor passing in the value of 1 field(emp_id) into the other cursor and fetch 6 feilds from another table into the second cursor.
Now i have two cursors ,one with 78 fields and one with 6 fields and the common field in those tow is the emp_id how do i combine both and put in one cursor or array.
my requirement is:
1.Get all from employee table(78 fields)
2.Loop through each emp_id and if emp_id>10,000 get salary details from new_salary table
else
get salary details from old_salry table.
now i have two cursors one with employee details and one with employye salary details.How do i combine both.