Hi all,
I have a table with column (date> rrrr-mm-dd) and I need group the results by months like january, febrauary.
any simple way how to do it<
thx.
I have a table with column (date> rrrr-mm-dd) and I need group the results by months like january, febrauary.
any simple way how to do it<
thx.
Hi homeopat,
What kind of grouping do you need?
If you need to total by month then this StackOverFlow answer may help.
Bob
What kind of grouping do you need?
If you need to total by month then this StackOverFlow answer may help.
Bob
Hi Bob,
but How it use in CC? I tried put to the group field
[list]datum.month[/list]
[list]MONTH(datum)[/list]
but error is occurred
but How it use in CC? I tried put to the group field
[list]datum.month[/list]
[list]MONTH(datum)[/list]
but error is occurred
Hi Homeopat,
This is the ChronoForms forum so it wasn't obvious that you were asking about CC - I'll move the thread over. Not sure that I know the answer though.
Personally if I want to group by month the simplest way would be to add a month column to the table. Though perhaps you can create that on the fly - my MySQL isn't good enough to know how though.
Bob
This is the ChronoForms forum so it wasn't obvious that you were asking about CC - I'll move the thread over. Not sure that I know the answer though.
Personally if I want to group by month the simplest way would be to add a month column to the table. Though perhaps you can create that on the fly - my MySQL isn't good enough to know how though.
Bob
Good point, I added the date variable to fields in admin
but it doesnt grouping by date😟
thx
MONTH(date_variable)
but it doesnt grouping by date😟
thx
Please try
Regards,
Max
:MONTH(date_variable)
Regards,
Max
This topic is locked and no more replies can be posted.
