Mysql
 sql >> Base de Dados >  >> RDS >> Mysql

convertendo a consulta MySQL para a sintaxe do Codeigniter


Confira este Registro ativo classe no Codeigniter,
$this->db->select("a.pbj_name as 'NAMA PERUSAHAAN', count(a.id_pbj) as 'JUMLAH PAKET', group_concat(c.paket_kode) as 'PILIHAN PAKET'");
$this->db->from('jed_pbj a');
$this->db->join('jed_paket_pbj b', 'a.id_pbj=b.id_pbj', 'left');
$this->db->join('jed_paket c', 'b.id_paket=c.id_paket', 'left');
$this->db->group_by("a.id_pbj"); 
$this->db->get();