I have 2 x fields T1.period and T1.year both have data type smallint Using SQL Management Studio 2014 how may I Concatenate them AND return result as a DATE type?
Also, T1.period has values 1 to 12 how may I pad this out to 01 to 12 ... or will changing to date type sort this out?
Much appreciated!
Sample data ...
period yr 1 2015 2 2009 12 2009 11 2010 10 2011
Result will be ... Date 01/01/2015 01/02/2009 01/12/2009 01/11/2010 01/10/2011
Thanks!
Looks terrible struggling to get it into lists - sorry :(