SQL Query
SQL Query

Hi,
Where I have to insert SQL command GROUP BY
I have try this but does not work:
Editor::inst( $db, 'persone', GROUP BY DATE_FORMAT(start_date, "%Y%m%d") )
->field(
Field::inst( 'persone.id' )
)
This discussion has been closed.
Replies
Where I have to insert GROUP BY DATE_FORMAT(start_date, "%Y%m%d") ?
Simply I need this but does not work:
I hope this is helpful for you:
Hi,
We discussed this by e-mail (OP): Unfortunately there is no "group by" option in Editor at the moment. If that is something that is required, a custom SQL statement would need to be used - but Editor wouldn't be able to directly use it to edit the database since it needs to "understand" the SQL (which it currently doesn't for a GROUP BY). This is something I plan to add in future, but it isn't available yet. Sorry.
Allan