I am getting ORA-30926: unable to get a stable set of rows in the source tables while merging two temp tables.
In my function, first i am inserting data into temp table temp1 and then inserting into temp2
after that doing a merge into temp1 using temp2 based on by job_id and device_id.
I am getting above error while executing function.
I have checked that tem1 has data but temp2 doesn't have any records in it .. is it the reason for this error?