Hi,
my CC nicely displays its data in the order the rows have been entered.
Now for ordering it by special fields I can enter the fields in the "ORDER BY" box; adding "desc" works nicely as well.
BUT - if I want to order them by substrings of the fields (e.g. last 4 numbers of a date like 01.01.2011) I get an error message:
I enter SUBSTR(datum,7,4) desc (as I did before in CC2) in the ORDER BY box and on an error page I get the answer
0 - SQL=SELECT * FROM `joom_chronoforms_data_BPPVortraege` ORDER BY `SUBSTR(datum`, `6`, `4)` DESC LIMIT 0,20
so CC adds some strange `-symbols where they don't make any sense.
What should I enter in the ORDER BY box to get the data sorted by substrings ?
Thanks in advance,
Doris
my CC nicely displays its data in the order the rows have been entered.
Now for ordering it by special fields I can enter the fields in the "ORDER BY" box; adding "desc" works nicely as well.
BUT - if I want to order them by substrings of the fields (e.g. last 4 numbers of a date like 01.01.2011) I get an error message:
I enter SUBSTR(datum,7,4) desc (as I did before in CC2) in the ORDER BY box and on an error page I get the answer
0 - SQL=SELECT * FROM `joom_chronoforms_data_BPPVortraege` ORDER BY `SUBSTR(datum`, `6`, `4)` DESC LIMIT 0,20
so CC adds some strange `-symbols where they don't make any sense.
What should I enter in the ORDER BY box to get the data sorted by substrings ?
Thanks in advance,
Doris