Welcome Guest, Not a member yet? Register   Sign In
combining two rows wit the Query Builder
#1

(This post was last modified: 07-06-2021, 07:13 PM by richb201.)

I have two rows showing up in mysql table
BC     taxyear     research     support     supervision
IOS    201704     $90000
IOS    201704                         $6234
I'd like to make these two lines into a single line like this
IOS     201704    $90000        $6234
I thought I could use group_by like this
$this->db->group_by(array("BC", "taxyear")); 
$this->db->insert('substantially_all_render_temp', $data);
But this doesn't work. What am I doing wrong? $data contains an array of the data I am placing into the table.
proof that an old dog can learn new tricks
Reply


Messages In This Thread
combining two rows wit the Query Builder - by richb201 - 07-06-2021, 07:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB