From: | "Stéphane A(dot) Schildknecht" <stephane(dot)schildknecht(at)postgresql(dot)fr> |
---|---|
To: | pgsql-fr-generale(at)postgresql(dot)org |
Subject: | Re: ecriture d'une jointure externe gauche sans left inner join ; est ce possible ? |
Date: | 2010-10-25 16:00:54 |
Message-ID: | 4CC5A9B6.50709@postgresql.fr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-fr-generale |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Le 25/10/2010 17:36, Marie-Claude QUIDOZ a écrit :
> Bonjour
>
>
>
> J’ai une application java en production qui a été développée par une boite qui
> a fait faillite depuis … Cette application « attaque » une base de donnée en
> postgresql 8
>
>
>
> Je souhaiterai exprimer une jointure externe gauche (cf en dessous) uniquement
> avec les mots clefs « from where » donc sans « left outer join ». Mais est ce
> possible ?
>
>
>
> A+
>
>
>
> MCQ
>
>
>
> SELECT
>
> mesure.mesure_id,
>
> mesure.plateforme_prov_obs_id,
>
> plateforme_provenance.plateforme_nom,
>
> plateforme_provenance.plateforme_provenance_id,
>
> mesure.plateforme_id
>
> FROM
>
> public.mesure left outer join public.plateforme_provenance
>
> on mesure.plateforme_prov_obs_id = plateforme_provenance.plateforme_provenance_id
>
> where mesure.plateforme_id=59
>
Bonjour,
Je dirai quelque chose comme :
SELECT
mesure.mesure_id,
mesure.plateforme_prov_obs_id,
plateforme_provenance.plateforme_nom,
plateforme_provenance.plateforme_provenance_id,
mesure.plateforme_id
FROM
public.mesure, public.plateforme_provenance
where mesure.plateforme_id=59
and
(mesure.plateforme_prov_obs_id =
plateforme_provenance.plateforme_provenance_id
or mesure.plateforme_prov_obs_id is null) ;
Salutations,
- --
Stéphane Schildknecht
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkzFqbYACgkQA+REPKWGI0GguQCfex90YLHb63BCC/4SQeTr7OxZ
7iEAn1Kbn+m5JLnTAkst4icbmiVijyV7
=wjIi
-----END PGP SIGNATURE-----
From | Date | Subject | |
---|---|---|---|
Next Message | Marie-Claude QUIDOZ | 2010-10-25 16:07:34 | Re: ecriture d'une jointure externe gauche sans left inner join ; est ce possible ? |
Previous Message | Marie-Claude QUIDOZ | 2010-10-25 15:36:07 | ecriture d'une jointure externe gauche sans left inner join ; est ce possible ? |