22880 Posts in 9589 Topics by 2804 members
|Go to End|
26 June 2012 at 6:51am
I have column in a table which contains numbers. How can I retrieve the max value from that column? Do I have to use rawsql-query or is it possible to do with Dataobject::get?
Thanks in advance!
27 June 2012 at 2:18am
$iMax = DB::query("SELECT MAX(\"Field\") FROM \"DataObjectClassName\"")->value();
|Go to Top|