Received: from flex.flex.ro (ns.flex.ro [193.230.255.2]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f3UIIO395190 for ; Mon, 30 Apr 2001 14:18:25 -0400 (EDT) (envelope-from teo@flex.ro) Received: from flex.ro (teo.flex.ro [193.230.255.3]) by flex.flex.ro (8.11.0/8.11.0) with ESMTP id f3UD2Gh15674 for ; Mon, 30 Apr 2001 16:02:16 +0300 Message-ID: <3AED6EB6.6D808185@flex.ro> Disposition-Notification-To: Constantin Teodorescu Date: Mon, 30 Apr 2001 16:55:02 +0300 From: Constantin Teodorescu Organization: PCNet Braila X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.17-14 i686) X-Accept-Language: en MIME-Version: 1.0 To: PostgreSQL Interfaces Subject: MULTIPLE OUTER JOIN SYNTAX :-( can't quess it Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200104/139 X-Sequence-Number: 1523 Please excuse for my lack of imagination building SQL selects with OUTER JOINS but something's unclear for me ... I have 3 tables, t0, t1 and t2. Tables are: authors (alias t0) with (id int2, name text); books (alias t1) with (author int2, title text); nicknames (alias t2) with (id int2, nickname text); I want a select query with them with 2 outer joins like that t0.id = t1.author t0.id = t2.id Tried : select t0.name, t1.title, t2.nickname from authors t0 left outer JOIN books t1 ON (t0."id"=t1."author") , authors t0 left outer join nicknames t2 on (t0."id"=t2."id") but it says "author table declared more than once". with just 1 table it worked for me Please, could you help me quickly showing me the right syntax? I'm working to add outer joins to visual query builder in PgAccess. Constantin Teodorescu Braila, ROMANIA