Hi all, I have a .dat file in the following formatEXTID|ICI_ID88|25300166902047|253008499092|253003659095|ENORBKNRX16376|25301384905344|25300995905345|25300954907|2530010590Refco Cap Mkts CUST|2530487590
And I have two tablestable1 --(colname1, colname2, colname2, colname4)table2 --(.., colname5, colname6, colname7...)
I need to insert the data of .dat file into table1Insert EXTID into colname1Insert corresponding ICI_ID into corresponding colname2Insert "STATIC" into corresponding colname3Insert sysdate into corresponding colname4Now the criteria is Insertion will only happen when1. EXTID is not currently present in table1 AND 2. there is an entry in table for ((ICI_ID=table2.colname5) OR (ICI_ID=table2.colname6)) AND colname7 IN('STRING1', 'STRING2')I wrote a program in java to do this task for me. But as the file is very large consisting of nearly 1 lakh record, I thought there must be some way of doing this in SQL alone-- by some query or small procedure.. I would be glad if anyone can help me on this..thanks.