Re: solution for opposite of this join / join from this subselect

2003-01-23 Thread Bill Easton
See interleaved comments below. > Subject: solution for opposite of this join / join from this subselect > To: [EMAIL PROTECTED] > From: "Josh L Bernardini" <[EMAIL PROTECTED]> > Date: Wed, 22 Jan 2003 11:23:44 -0800 > thanks to brent, bob and M wells for their

RE: solution for opposite of this join / join from this subselect

2003-01-23 Thread M Wells
I personally can't think of a way of representing the same query you have developed but only using LEFT JOINs. I'm not in a position to say it can't be done, but I certainly can't think of a way to do it. All the best, M Wells [1] As a simple example of a 'find unmatched&#

solution for opposite of this join / join from this subselect

2003-01-22 Thread Josh L Bernardini
thanks to brent, bob and M wells for their contributions to this solution and to m especially who seems to have put in a lot of time and nailed it. This query returns a list of people not attending a particular event, given an events table, a people table, and a many-many epeople table between the

Re: opposite of this join

2003-01-21 Thread Bob Hall
;| > | To: [EMAIL PROTECTED] >| > | cc:

RE: opposite of this join

2003-01-21 Thread M Wells
2','event description 2' 'surname 4','given names 4','contact details 4','event 3','event description 3' 'surname 4','given names 4','contact details 4','event 4','event description 4'

Re: opposite of this join

2003-01-21 Thread Josh L Bernardini
| | cc: | | Subject: R

Re: opposite of this join

2003-01-21 Thread Bob Hall
On Tue, Jan 21, 2003 at 01:38:42PM -0800, Josh L Bernardini wrote: > > Bob, > First of all, thank you. I never would have gotten here on my own. Only I > am not quite there. > Using your example, I have managed to list all the events a person is > attending and not attending. Wondering if you migh

Re: opposite of this join

2003-01-21 Thread Josh L Bernardini
| | To: [EMAIL PROTECTED] | | cc:

Re: opposite of this join

2003-01-21 Thread Brent Baisley
You are looking for a list of people rather than a list of events and the people attending them. So you want to start your select from People, not from Events. Get a list of all the people, then filter out those attending event id 2. You don't want to start you select from epeople because then

Re: opposite of this join

2003-01-21 Thread Bob Hall
On Tue, Jan 21, 2003 at 08:43:29AM -0800, Josh L Bernardini wrote: > > I have three tables, people, events and epeople. epeople includes a person > id and an event id and works as a list of people attending events in the > database. > > The following query returns a list of all the people partici

opposite of this join? -- simplified

2003-01-21 Thread Josh L Bernardini
I would like to get the difference of the results from query 2 and query 1, or the people not attending event [id 2] (referenced by epeople.eid). Thought the answer would be query three, but as you see, I get an empty set. Any advice would be appreciated. jb Here is everyone attending the event [

opposite of this join

2003-01-21 Thread Josh L Bernardini
I have three tables, people, events and epeople. epeople includes a person id and an event id and works as a list of people attending events in the database. The following query returns a list of all the people participating in a particular event given an event id. select people.id as pid, conca