Re: [SQL] Oracle outer join porting question

2003-01-16 Thread Marko Asplund
On Wed, 15 Jan 2003, Tambet Matiisen wrote: > ... > Try this: > > SELECT doc.id,doc.title,sub.user_id,sub.operation > FROM document doc LEFT OUTER JOIN document_subscription sub > ON sub.document_id = doc.id AND sub.user_id = 6; yes, this query seems to give the same results as the original

Re: [SQL] Oracle outer join porting question

2003-01-15 Thread Dan Langille
On 15 Jan 2003 at 16:40, Tambet Matiisen wrote: > Try this: > > SELECT doc.id,doc.title,sub.user_id,sub.operation > FROM document doc LEFT OUTER JOIN document_subscription sub > ON sub.document_id = doc.id AND sub.user_id = 6; FWIW: test=# SELECT doc.id,doc.title,sub.user_id,sub.operation

Re: [SQL] Oracle outer join porting question

2003-01-15 Thread Tambet Matiisen
> -Original Message- > From: Marko Asplund [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 15, 2003 4:31 PM > To: [EMAIL PROTECTED] > Subject: [SQL] Oracle outer join porting question > > > > i'm trying to port an existing application from Ora

Re: [SQL] Oracle outer join porting question

2003-01-15 Thread Dan Langille
On 15 Jan 2003 at 16:31, Marko Asplund wrote: > > i'm trying to port an existing application from Oracle8i to PostgreSQL but > i'm having problems understanding a certain outer join query type used in > the application. the query includes a normal outer join between two tables > but also uses out

[SQL] Oracle outer join porting question

2003-01-15 Thread Marko Asplund
i'm trying to port an existing application from Oracle8i to PostgreSQL but i'm having problems understanding a certain outer join query type used in the application. the query includes a normal outer join between two tables but also uses outer join syntax to join a table with a constant. here's a