Welcome Guest, Not a member yet? Register   Sign In
Not getting DISTINCT values from query
#3

[eluser]Bhashkar Yadav[/eluser]
plz try this

Code:
$this->db->distinct();
$this->db->select('item');
$this->db->join('chassis_support', 'chassis_support.part_num = component.part_num', 'inner');
$query = $this->db->get('component');

OR
Code:
$this->db->select('DISTINCT(item)');
$this->db->join('chassis_support', 'chassis_support.part_num = component.part_num', 'inner');
$query = $this->db->get('component');


Messages In This Thread
Not getting DISTINCT values from query - by El Forum - 02-08-2012, 09:39 AM
Not getting DISTINCT values from query - by El Forum - 02-08-2012, 09:44 AM
Not getting DISTINCT values from query - by El Forum - 02-08-2012, 09:54 AM
Not getting DISTINCT values from query - by El Forum - 02-08-2012, 10:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB