Is there any solution to find number of values Grouped by MySQL groupby query. Following is my Query.
$groupBy = 'PropertyViewer.ip_address';
$this->paginate = array("group"=>array($groupBy),"order"=>array("PropertyViewer.id desc"));
I need to find how many values grouped in each case.
I think all you need is the
COUNT()aggregate function in your SELECT query: