Selecting maximum value from a field


I have a field which contains integer values. How do I obtain the
maximum value of the column?


You sort by DESC, and fetch the first value of a query for
“*”? =)

Ferret doesn’t have these SGDB-like features built into it, as far as
I can remember from the docs.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs