1

Ive got a Zend_Db_Table

Now I want to get the maximum available value of a field.

Is there a way to get the MAX(number) value or do I need to use basic SQL?

Thanks!

baklap
  • 2,145
  • 6
  • 28
  • 41

1 Answers1

1

Use

new Zend_Db_Expr('MAX(number)')

as one of the fields in the Zend_Db_Table_Select.

Rufinus
  • 29,200
  • 6
  • 68
  • 84