Hi,
I am executing this query:
Hi,
I am executing this query:
When you use the string form of group, rails doesn’t look into the string to see that you are grouping on 2 different things.
I’d try group(“date_format(insertdate, ‘%Y/%m’)”, “type”)
Fred