I'm in this SQL, retrieving records (number of providers per city) from a table and would like to count how many records it has in each city . I want in front of the cities, put something like Tal (9) . I will put a print of the result of this SQL to help better visualize the question:
publicfunctiongetFornsRegion($code){$this->db->select("fe.*");
$this->db->from("fornecedores_empresa AS fe");
$this->db->where("fe.regiao", $code);
$this->db->group_by("fe.cidade");
return $this->db->get()->result_array();
}