sql - Extract column metadata from rows -


I am trying to read a CSV file where the metadata is placed on row 4 to 7

  source, "Eurostat", "INE", "BDP", "Unit", "Percent", "Unit", "Unit", "Rate", "PIB", "Development",  / Pre> 

Where the relevant data starts at row 10. This CSV format will always be fixed with this kind of data and the nature of this line.

  Date, Series 1, Series 2, Series 3 30 -09-2014, 13.1.1.15. 55 30-06-2014,13.9,0.9,5.63 31-03-2014,15.1,1.0,5.57 31-12-2013,15.3,1.6,5.55 30-09-2013-15.5, -1.05.66 30-06- 2013,16.4, -2.15.65  

What I have done is to leave the first lines and read the data from row 10 later, and it defines the column metadata itself, however, Rows have no unit type nor magnitude Micro metadata was defined in the header. In SSIS, I unpivot one of the columns in an indicator column so that I have the style of the date, series, value table.

My question is here how can I create a table of date, series, value, quantity, unit format where series, magnitude, unit first Is read from 10 rows?


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -