Hi Folks
I have a date column called 'YYYYMM' that is an Integer data type in YYYYMM format (eg. 201309). I want to return records from the last 6 months.
If the column was in a date format I could use something like
[YYYYMM] >DATEADD(M, -6, CURRENT_TIMESTAMP)
Therefore I assume I need to do a CONVERSION of INT into a date format with something like
CONVERT (DATE, [YYYYMM]
But I get the message "Explicit conversion from data type int to date is not allowed"
Can someone suggested a work around?
Many thanks Steve