Welcome Guest, Not a member yet? Register   Sign In
Pagination with group by return oci_execute(): ORA-00979: not a GROUP BY expression
#5

(This post was last modified: 04-13-2024, 08:52 PM by just.)

(04-12-2024, 06:09 PM)kenjis Wrote: Check the SQL statement, then you may know something.
https://codeigniter4.github.io/CodeIgnit...ql-queries

(04-13-2024, 08:11 PM)kenjis Wrote: If you get ORA-00979, the SQL statement is wrong.
So you need to fix the SQL statement.

> event good without pagination from models.

What do you mean?


i tried, without pagination, and its execute well. no error without ->paginate()
is there other ->groupBy() 
to grouping on builder?

(04-12-2024, 01:31 PM)just Wrote:
        return $this;

Code:
$this->builder()
            ->select(‘name, address’)
            ->selectSum('TOTAL’)
            ->groupBy(‘name’, ‘address')
            ->limit($limit,  $offset);

        return $this;


Hi Kenjis, thanks for pointing me out.
its done by change : 
 
Code:
->groupBy(‘name’, ‘address')

into 
 -
  ->groupBy(‘name,address')
Reply


Messages In This Thread
RE: Pagination with group by return oci_execute(): ORA-00979: not a GROUP BY expression - by just - 04-13-2024, 08:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB