I have this query:
SELECT delMonth FROM futRoot
This gives the result:
By any chance, is there a way that I can produce result, changing the numbers there to shortened month names? Using the image, the desired result would be:
Mar,Jun,Sept,Dec
Feb,Apr,Jun,Aug,Oct,Dec
Feb,Apr,Jun,Aug,Oct,Dec
Feb,Apr,Jun,Aug,Oct,Dec
Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec
I am aware that this code can produce the shortened month:
DATE_FORMAT(STR_TO_DATE(monthNumber, '%m'), '%b')
My prob is that how can I get the monthNumber from the string, then CONCAT them in a way after converting them to shortened month.
Any help will be appreciated. Thanks!