Re: Join verteilen

From: Harald Fuchs <hf0614x(at)protecting(dot)net>
To: pgsql-de-allgemein(at)postgresql(dot)org
Subject: Re: Join verteilen
Date: 2005-08-02 16:20:21
Message-ID: pu4qa8b9a2.fsf@srv.protecting.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-de-allgemein

In article <8442c968eca74dbe22d7e78df33b0dba(at)ateam(dot)de>,
Marc Hanisch <hanisch(at)ateam(dot)de> writes:

> Ist das eine extra Bibliothek? Kann man das ganze nicht mit
> hauseigenen Mitteln erreichen?

Wenn es nur die zwei Werte a und b gibt, ginge auch folgendes:

SELECT t1.key, t2a.wert, t2b.wert
FROM t1
LEFT JOIN t2 t2a ON t2a.t1_key = t1.key AND t2a.wert = 'a'
LEFT JOIN t2 t2b ON t2b.t1_key = t1.key AND t2b.wert = 'b'

In response to

Responses

Browse pgsql-de-allgemein by date

  From Date Subject
Next Message Alfred Cleve 2005-08-02 20:25:25 Welche GUI ist empfehlenswert ?
Previous Message Kretschmer Andreas 2005-08-02 15:40:09 Re: Join verteilen