He he he NICE :-)
/Lasse
2010/3/25 Dudebot <craignied@gmail.com>
On Mar 24, 4:42 pm, Lasse Bunk <lasseb...@gmail.com> wrote:Lasse, you have my "SQL Guru of the Year Award." Many thanks,
> This should do it:
>
> LabDesc.find(:all, :conditions => 'NOT EXISTS(SELECT * FROM
> lab_desc_groups WHERE lab_desc_id=lab_descs.id)')
Craig
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment