Closed Philippe-M closed 7 years ago
Medoo already supports Group By, example code from the docs:
$database->select("account", "user_id", [
// GROUP by single value
'GROUP' => 'type',
// GROUP by array of values
'GROUP' => [
'type',
'age',
'gender'
],
// Must have to use it with GROUP together
'HAVING' => [
'user_id[>]' => 500
]
]);
oupss, Sorry I had not seen this in the doc.
Hello, it's possible in the next release to add a GROUP BY criteria in select query ?