I had a date field like 2014-12-30
and I did something like EXTRACT(YEAR_MONTH FROM date) as yr_month
which returned a value like 201412
.
I'd like to retrieve the month from this new value, reverse engineer it back to the month. I tried MONTH(yr_mnth)
and also MONTH(RIGHT(yr_mnth, 2))
.
Any thoughts on how to retrieve the month from this field?