Quantcast
Viewing all articles
Browse latest Browse all 24688

Split txt file data into 3 and insert into 3 Tables

Hello,

I have txt file containing 30 records
I need any 10 records into Table1, another 10 records in Table2 and rest 10 records in Table3.

I have tried it by inserting txt file data into SQL Table and then use NTILE(3) function.
Later by filtering rowId i can insert into 3 tables.

Any other ways I can achieve this?


-Vaibhav Chaudhari


Viewing all articles
Browse latest Browse all 24688

Trending Articles