in reply to Re: MAX and GROUP BY in DBIx::Class
in thread MAX and GROUP BY in DBIx::Class
my $rs = $schema->resultset('Events')->search( {}, { select => [ 'name', { max => 'event_id' } ], as => [qw/ name max_event_id /], group_by => [qw/ name /] } );
|
|---|