teddysnow12
Programmer
Hi,
I need a syntax which gives 1 year prior to a given year .
My field is rptg_yyyymm.
the datatype is string.
example : The values are like this,
'2008-01'
'2008-02'
I should convert this into date format and also need syntax for 1year prior this date like,
if the given year is 2008-01,
the prior year is 2007-01
Thanks!
I need a syntax which gives 1 year prior to a given year .
My field is rptg_yyyymm.
the datatype is string.
example : The values are like this,
'2008-01'
'2008-02'
I should convert this into date format and also need syntax for 1year prior this date like,
if the given year is 2008-01,
the prior year is 2007-01
Thanks!