RE: JOINS one table twice

2002-08-02 Thread Luc Foisy
> On 2 Aug 2002, at 11:43, Luc Foisy wrote: > > > FROM EVENTATTENDANCE > > LEFT JOIN EVENT ON EVENTATTENDANCE.ID_EVENT = EVENT.ID > > LEFT JOIN CONTACT ON EVENTATTENDANCE.ID_CONTACT = CONTACT.ID > > LEFT JOIN STATUS ON EVENTATTENDANCE.ID_STATUS = STATUS.ID > > LEFT JOIN ORGANIZATION ON CONTAC

RE: JOINS one table twice

2002-08-02 Thread Luc Foisy
> Luc Foisy wrote: > > >Since the below select query blew up on me, then I must be > doing something wrong, perhaps it is because I am using the > wrong type of join, dunno > >I would like to join the same table twice, with different > criteria as below > > > >Anyone got a solution to this? >

Re: JOINS one table twice

2002-08-02 Thread Keith C. Ivey
On 2 Aug 2002, at 11:43, Luc Foisy wrote: > FROM EVENTATTENDANCE > LEFT JOIN EVENT ON EVENTATTENDANCE.ID_EVENT = EVENT.ID > LEFT JOIN CONTACT ON EVENTATTENDANCE.ID_CONTACT = CONTACT.ID > LEFT JOIN STATUS ON EVENTATTENDANCE.ID_STATUS = STATUS.ID > LEFT JOIN ORGANIZATION ON CONTACT.ID_ORGANIZAT

JOINS one table twice

2002-08-02 Thread Luc Foisy
Since the below select query blew up on me, then I must be doing something wrong, perhaps it is because I am using the wrong type of join, dunno I would like to join the same table twice, with different criteria as below Anyone got a solution to this? SELECT EVENTATTENDANCE.ID, CONCAT