using month name to fetch the data code example Example: mysql month name extract SELECT MONTHNAME(column_date,’%m’)) as monthname from tablename;