Here is my first table. it has start_serial column and end_serial column (got from calculate)
**START_SERIAL END_SERIAL** 120500216057150 120500216057155 120500216057156 120500216057161
**DENOMINATION SERIAL_NO AGENT_NAME SUB_AGENT** 100 121000056003871 NALINR A 100 121000056003855 NALINR A 100 121000056003860 NALINR A 100 121000056003858 NALINR A 100 121000056003853 NALINR A

here is my second table.it has all serials one by one

now i need to write pl/sql for below scenario 1. select one record from sales_details [1st Table] ex :- 120500216057148 120500216057150 [2 cards]
- then need to check if they exist in table 2 ex :- 1st check 120500216057148 to 120500216057150 one by one then check next record ..
like that :-)
3.if exist insert to temp_data_table if not message for dbms_output no matching records found.
Please help me to sort out this issue