Hi Everyone.
I have csv files with sale orders. In every file I have two kind of data - first row contains sales order header (date of order, date of delivery etc) and another rows contains details of ordered goods.
First row is always order header and all other rows and contains details of ordered goods. H3 means header and R3 means details - for example:
"H3",100077,"689","25-04-2013","17-04-2013","","","","P","",""
"R3",100077,"689",1,1100005,0.0,0.000,40.000,"","","0","12.460","0.000"
"R3",100077,"689",2,1100009,0.0,0.000,40.000,"","","0","12.700","0.000"
"R3",100077,"689",3,1100012,0.0,0.000,20.000,"","","0","12.990","0.000"
"R3",100077,"689",4,1100098,0.0,0.000,40.000,"","","0","23.000","0.000"
"R3",100077,"689",5,1100132,0.0,0.000,20.000,"","","0","12.460","0.000"
How can I transform this files into SQL Table ? How to get in one transformation header data and details data?
What input type should I use - CSV file or Text file??
I have csv files with sale orders. In every file I have two kind of data - first row contains sales order header (date of order, date of delivery etc) and another rows contains details of ordered goods.
First row is always order header and all other rows and contains details of ordered goods. H3 means header and R3 means details - for example:
"H3",100077,"689","25-04-2013","17-04-2013","","","","P","",""
"R3",100077,"689",1,1100005,0.0,0.000,40.000,"","","0","12.460","0.000"
"R3",100077,"689",2,1100009,0.0,0.000,40.000,"","","0","12.700","0.000"
"R3",100077,"689",3,1100012,0.0,0.000,20.000,"","","0","12.990","0.000"
"R3",100077,"689",4,1100098,0.0,0.000,40.000,"","","0","23.000","0.000"
"R3",100077,"689",5,1100132,0.0,0.000,20.000,"","","0","12.460","0.000"
How can I transform this files into SQL Table ? How to get in one transformation header data and details data?
What input type should I use - CSV file or Text file??