Split yearQuarter

  • Hi,

    I have 2 columns

    yearquarter|year|quarter

    2014q3 | |

    i want to get data for year column as 2014 and quarter q3 using yearquarter column using ssis.

    if i am not clear let me know

  • Add 2 derived columns and use the expressions

    RIGHT([yearquarter],2 )

    LEFT([yearquarter],4 )

    Just realized there is not left function is SSIS

    better use the substring

    SUBSTRING("2014Q3",5,2)

    SUBSTRING("2014Q3",1,4)

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply