我下面有一个查询,其中我使用过codeigniter活动记录类。我收到重复的记录,所以我想知道如果不使用group by和different怎么解决。
$this->db->select(array('tblilots_proposal.id', 'buyer', 'offer_price', 'tblilots_proposal.units', 'tblilots_proposal.status', 'tblilots_proposal.date_added as proposal_date', 'tblilots_clients_plan.unit_price', 'ilots_stage_id', 'slot', 'tblilots_clients_plan.date_added as purchased_date', 'tblilots_plan_details.roi_pct', 'tblilots_plan_details.roi_period', 'value_pct', 'value_period', 'duration_num', 'duration_period'));
$this->db->from('tblilots_proposal');
$this->db->join('tblilots_clients_plan', 'tblilots_clients_plan.id = tblilots_proposal.ilots_clients_planid');
$this->db->join('tblilots_plan_details', 'tblilots_plan_details.ilots_fieldid = tblilots_clients_plan.ilots_field_id');
$this->db->join('tblilots_stage', 'tblilots_stage.id = tblilots_clients_plan.ilots_stage_id');
$this->db->where('userid', get_client_user_id());
$proposal = $this->db->get()->result_array();