hi I have a date that is 2009-06-02 00: 00: 00.000, and I only want a monthly group.
how to change this ?!
You can group by month, but have data that spans more than one year. In this case, I would do:
group by Year(MyDate), Month(MyDate)
using
group by MONTH(record_date)
see this question for more information:
MySQL Query GROUP BY day / month / year
SELECT ... GROUP BY MONTH(datecolumn)
Source: https://habr.com/ru/post/1731239/More articles:Programmatically backing up (and sending by email) the full MySQL database via PHP - sqlZend MVC - get rid of a shared folder - phpORM to abstract the traditional database and WCF service - design-patternsUser interface design for bidirectional number search - user-interface.htaccess mod-rewrite, like - apacheSQL Server Query View for Equi - sqlIn html / JSF - How to make a component respond to clicks? - htmlHow to set up a user account to run the built-in runner in Team City - continuous-integrationConvert Python to ISO-8859-5 - pythonUsing the C function in Objective-C (for iPhone) - cAll Articles