I have various input files with fixed number of rows which always begin with the following 7 lines of information:
"Factuur","12345678"
"Datum","27/02/2012"
"Totaal:","1"
"Totaal netto:","99,18"
"Totaal bruto:","107,13"
"Verzamel factuurnummer:","1234567890A"
"Valuta:","EUR"
"TXN tijd (dd/mm/jj)","TXN Nr","Kostenplaats naam","Truncated... "11/02/2012 02:22";"00000222";"";"722222";"Truncated... "12/02/2012 02:22";"00000223";"";"722222";"Truncated... "13/02/2012 02:22";"00000224";"";"722222";"Truncated…
Note: There are two different delimiters used comma(,) and semi-colon(;).
I want to import the above data into a SQL database table. I know the process of importing data from the source file into a database but my problem is how do I append the new information in the header rows of every relevant table?
The final output should look like below:
Factuur Datum … TXT tijd TXN Nr. …
12345678 27-2-2012 … 11-2-2012 02:22 00000222
12345678 27-2-2012 … 12-2-2012 02:22 00000223
Please suggest how can I perform this.