Hi friends,

I got the output.
The error is because there is no data in DUP1 table.

After inserting the records into that, i got the o/p with the program

Thank you