21308 Posts in 5737 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 240 Views |
-
Retrieving max value from Dataobject

26 June 2012 at 6:51am
Hey,
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!
-
Re: Retrieving max value from Dataobject

27 June 2012 at 2:18am
$iMax = DB::query("SELECT MAX(\"Field\") FROM \"DataObjectClassName\"")->value();
| 240 Views | ||
|
Page:
1
|
Go to Top |


