• rohit.kumar.barik (5/10/2013)


    Hi All,

    I am getting input file below format.

    Text-dd.mm.yy.

    i need to display as 20yy (year) and mm.dd (Issue) For that i am using regular expr. i am using

    '^Text-(?<Issue>\d{2}\.\d{2}).(?<Year>\d{2})\.txt$'

    output is yy and dd.mm

    i need to add 20 before yy i.e. output will be 20yy.

    Please give your suggestion. Thanks in advance.

    Can you show a few rows of sample data please?

    “Write the query the simplest way. If through testing it becomes clear that the performance is inadequate, consider alternative query forms.” - Gail Shaw

    For fast, accurate and documented assistance in answering your questions, please read this article.
    Understanding and using APPLY, (I) and (II) Paul White
    Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden