I have to extract the month name and year from the string of the form mmm-yy (Eg. Jan-20) using mysql query. I have tried the following query it returns only NULL. The query is:
SELECT monthname(mon)FROM month_extract_plan
Sample data:
Jan-20
Feb-20
Dec-19