This is my query:
Select Date_format(`date`, '%b %Y') as 'Categories',
..... as 'a1',....... as 'a2'
FROM table1
GROUP BY Date_format(`date`, '%b %Y')
ORDER BY Date_format(`date`, '%b %Y') ASC
Answer is alphabetical because, date_format
convert date to string, I need sorting by date, but, group by is the problem. I need group by
only for Date_format('date','%b %Y')
Please give a solution