[Ruby] Distinct in Active Record
hemant
gethemant at gmail.com
Wed Oct 17 16:41:22 PDT 2007
On 10/18/07, Neil Moomey <neil at motznik.com> wrote:
> How is this done in Active Record?
>
> select distinct * from table
>
> I can find distinct for calculate and count but not for :all. Yes, I could
> use :group but I have 13 fields to group by.
>
Is there any problem if you use find_by_sql for executing all such queries?
--
Let them talk of their oriental summer climes of everlasting
conservatories; give me the privilege of making my own summer with my
own coals.
http://gnufied.org
More information about the Ruby
mailing list