Re: help with constructing a query

2006-06-13 Thread medhat
Thanks, I understood the sql solution on your blog... but still can't figure out how to map that to django... waiting to read your next blog post :-) -- Medhat Malcolm Tredinnick wrote: > On Mon, 2006-06-12 at 12:09 -0700, medhat wrote: > > Hi, > > > > If you have a many-to-many field, let's say

Re: help with constructing a query

2006-06-12 Thread Malcolm Tredinnick
On Mon, 2006-06-12 at 12:09 -0700, medhat wrote: > Hi, > > If you have a many-to-many field, let's say for example Employee and > Project, is there a way given an arbitrary list of projects to get they > employees who work on all projects? (i.e. each on of the employees in > the result must be wo

help with constructing a query

2006-06-12 Thread medhat
Hi, If you have a many-to-many field, let's say for example Employee and Project, is there a way given an arbitrary list of projects to get they employees who work on all projects? (i.e. each on of the employees in the result must be working on *all* projects in the list) I am interested in doin