Jump to content

SQL GROUP BY clause


dazmania

Recommended Posts

Hi,

 

I am basing my module around the AdminOrders controller, I am modifying the sql and am struggling with the simpliest of tasks - I need to place a 'group by' clause:

 

These are all fine

$this->_select = '...

$this->_join = '...

$this->_orderBy = 'id_order';
$this->_orderWay = 'DESC';

 

but this does not seem to work ?

 

$this->_groupBy = 'id_order';

Am I just being a dumbass ?

 

Cheers,

Darren

Edited by dazmania (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...