pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: ext-thierry.templier@ccf.com
To: PGSQL <pgsql-sql@postgresql.org>
Subject: Left outer join and sub queries alias
Date: Thu, 23 Oct 2003 13:37:26 +0200
Message-ID: <OFD24612ED.1BED7413-ONC1256DC8.003F7276@prod.fr.hsbc> (raw)


Hello,

I try to make work this request:

select *
 from
  ( select * from personne_nom where personne_nom_pal=1 ) as tmp,
  personne
   left outer join tmp
     on ( personne.personne_id = tmp.personne_nom_personne_id )

 where personne_id=57

The error on execution is:
ERROR:  Relation "tmp" does not exist

Has anyone already had this problem?
Thanks
Thierry




Les informations contenues dans ce message sont confidentielles et peuvent constituer des informations privilegiees. Si vous n etes pas le destinataire de ce message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d en utiliser tout ou partie. Si vous avez recu ce message par erreur, merci de le supprimer de votre systeme, ainsi que toutes ses copies, et d en avertir immediatement l expediteur par message de retour.
Il est impossible de garantir que les communications par messagerie electronique arrivent en temps utile, sont securisees ou denuees de toute erreur ou virus. En consequence, l expediteur n accepte aucune responsabilite du fait des erreurs ou omissions qui pourraient en resulter.
--- ----------------------------------------------------- ---
The information contained in this e-mail is confidential. It may also be legally privileged. If you are not the addressee you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return e-mail.
E-mail communications cannot be guaranteed to be timely secure, error or virus-free. The sender does not accept liability for any errors or omissions which arise as a result.




view thread (2+ messages)  latest in thread

Message-ID: <OFD24612ED.1BED7413-ONC1256DC8.003F7276@prod.fr.hsbc>
Permalink:  ../OFD24612ED.1BED7413-ONC1256DC8.003F7276@prod.fr.hsbc/
Also on:    postgresql.org/message-id/OFD24612ED.1BED7413-ONC1256DC8.003F7276@prod.fr.hsbc

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: ext-thierry.templier@ccf.com
  Subject: Re: Left outer join and sub queries alias
  In-Reply-To: <OFD24612ED.1BED7413-ONC1256DC8.003F7276@prod.fr.hsbc>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox