rubyonrailsin

A Ruby and Rails talk

Thursday, March 25, 2010


Re: [Rails] Re: More elegant solution for "missing" has-many through ids?

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

He he he NICE :-)

/Lasse

2010/3/25 Dudebot <craignied@gmail.com>
On Mar 24, 4:42 pm, Lasse Bunk <lasseb...@gmail.com> wrote:
> This should do it:
>
>   LabDesc.find(:all, :conditions => 'NOT EXISTS(SELECT * FROM
> lab_desc_groups WHERE lab_desc_id=lab_descs.id)')

Lasse, you have my "SQL Guru of the Year Award."  Many thanks,
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

Subscribe feeds via e-mail

Blog Archive