GROUP BY YEAR(t.summaryDateTime), MONTH(t.summaryDateTime);
is what you want.
More Related Contents:
- MySQL Query GROUP BY day / month / year
- Comparing date ranges
- Mysql: how to select groups having certain values?
- MySQL #1140 – Mixing of GROUP columns
- Selecting all corresponding fields using MAX and GROUP BY
- MySQL GROUP BY behavior
- Current date in Oracle Db
- Left Outer Join doesn’t return all rows from my left table?
- How to return only the Date from a SQL Server DateTime datatype
- MySQL Insert query doesn’t work with WHERE clause
- Delete from two tables in one query
- “EEE MMM dd HH:mm:ss ZZZ yyyy” date format to java.sql.Date
- Delete sql rows where IDs do not have a match from another table
- In SQL / MySQL, what is the difference between “ON” and “WHERE” in a join statement?
- Does Mysql have an equivalent to @@ROWCOUNT like in mssql?
- MySQL equivalent of DECODE function in Oracle
- How do you version your database schema? [closed]
- Query comparing dates in SQL
- MySQL, Get users rank
- Get month name from date in Oracle
- How to fill date gaps in MySQL?
- MySQL: “The SELECT would examine more than MAX_JOIN_SIZE rows”
- Function for week of the month in mysql
- Comparing with date in Oracle sql
- what is the difference between GROUP BY and ORDER BY in sql
- SQL date format convert? [dd.mm.yy to YYYY-MM-DD]
- Return number from Oracle Select statement after parsing date
- SQL query to group by day
- MySQL SELECT x FROM a WHERE NOT IN ( SELECT x FROM b ) – Unexpected result
- MySql bulk load command line tool