Welcome Guest, Not a member yet? Register   Sign In
Compare data from two different tables using codeigniter
#2

[eluser]Unknown[/eluser]
Maybe this one ?
Code:
$this->db->select('count(DISTINCT(source))');  
$this->db->from('comment c','evaluation e');  

$this->db->where('c.evaluation_id','e.id');
$this->db->where('e.department_id', $department_id);


Messages In This Thread
Compare data from two different tables using codeigniter - by El Forum - 05-23-2013, 01:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB