79450334

Date: 2025-02-19 06:10:30
Score: 0.5
Natty:
Report link
protected $db = \Config\Database::connect();
public function getCitizen() {
    $builder = $this->db->table('citizen a');
    $q = $builder->select('a.*, b.Name as Religion')
                 ->join('religions b', 'b.ReligionId = a.ReligionId', 'LEFT');
    return $q->get()->getResult();
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Arnes He