I have a column in my database with populated with full dates : (0000-00-00) I need to show this date as a month string (ex. January).
I have too choices on my SQL QUERY here:
1 create a case when month is '01' = 'January' (which I believe is the best option since I could then change the string however I want (In Portuguese, with the first letter capital for example). I was not able to do that, I tried substring, but dates don´t like substring statements.
2 just show that date as month:
MONTH(DT_CANCEL)
However, I need to show the string (January) and the above only outputs 01
What is the best option (and how) can I show the full month name of a date in a SQL QUERY?
Using MySQL.