Forum: Ruby on Rails i need to work with group by

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
51bb5688c8c2c1b68d03c56da8e0b696?d=identicon&s=25 Alfredo Gama (alfredogz)
on 2007-01-16 19:04
Hello,

there are some method to make a seleccion like:
SELECT A,MAX(MY_DATE) GROUP BY A

??

thanks
4375b4aca04b8d72482fd409fb6d0b47?d=identicon&s=25 Roderick van Domburg (roderickvd)
on 2007-01-16 19:31
Alfredo Gama wrote:
> there are some method to make a seleccion like:
> SELECT A,MAX(MY_DATE) GROUP BY A

Read the manual:
http://api.rubyonrails.org/classes/ActiveRecord/Ba...

- Roderick
This topic is locked and can not be replied to.