Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

cakephp group by count

$query = $articles->find();
$query->select([
    'count' => $query->func()->count('view_count'),
    'published_date' => 'DATE(created)'
])
->group('published_date')
->having(['count >' => 3]);
Source by book.cakephp.org #
 
PREVIOUS NEXT
Tagged: #cakephp #group #count
ADD COMMENT
Topic
Name
1+7 =