in reply to DBIC and Aggregate MAX() Function

For something like this, I'd use column results. Related reading, DBIx::Class::ResultSetColumn and DBIx::Class::Manual::Features.

my $stocks_daily = $schema->resultset("stocks_daily"); # <-- update,ad +ded ";" my $rs = $stocks_daily->search({ symbol => $symbol, date => { ">=" => $date }}); my $c = $rs->get_column("c"); print $c->max || "nope!", $/;

Replies are listed 'Best First'.
Re^2: DBIC and Aggregate MAX() Function
by Galdor (Sexton) on Dec 05, 2013 at 17:18 UTC
    Marvelous! Thank-you Sir that does it...A little more words that I would have hopped - but I can again move forward - much appreciate the doc steer too ...