|
|
@ -46,6 +46,7 @@ class Uitslag_model extends CI_Model |
|
|
|
public function get_subgroep_punten($subgroepid) |
|
|
|
public function get_subgroep_punten($subgroepid) |
|
|
|
{ |
|
|
|
{ |
|
|
|
$this->db->select('SUM('.$this->db->dbprefix('resultaat').'.score/'.$this->db->dbprefix('lijst').'.ronde) AS score, |
|
|
|
$this->db->select('SUM('.$this->db->dbprefix('resultaat').'.score/'.$this->db->dbprefix('lijst').'.ronde) AS score, |
|
|
|
|
|
|
|
SUM('.$this->db->dbprefix('vragen').'.score) AS maxscore, |
|
|
|
spelgebied.id AS spelgebiedid, |
|
|
|
spelgebied.id AS spelgebiedid, |
|
|
|
'); |
|
|
|
'); |
|
|
|
$this->db->from('resultaat'); |
|
|
|
$this->db->from('resultaat'); |
|
|
|