Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $query = $this->db->select_sum('sold_price')->from('tbl_sales')->where('category_ID', $caid,'sold_date >=',$prev_year_start_month,'sold_date <=',$prev_year_end_month)->group_by('category_ID')->get()->row()->sold_price;
Add Comment
Please, Sign In to add comment