How the below query will return sum not count

  mysql, php
$query = $this->db->query("SELECT sum(total_given) FROM store_transaction WHERE accepted_flag='0'");
echo $query->num_rows(); 

Source: Ask PHP

LEAVE A COMMENT