From: | Karel Zak - Zakkr <zakkr(at)zf(dot)jcu(dot)cz> |
---|---|
To: | Sascha Ziemann <szi(at)khs-ag(dot)de> |
Cc: | pgsql-general(at)postgreSQL(dot)org |
Subject: | Re: [GENERAL] operator *= |
Date: | 1999-12-09 13:28:28 |
Message-ID: | Pine.LNX.3.96.991209142041.3593C-100000@ara.zf.jcu.cz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 9 Dec 1999, Sascha Ziemann wrote:
> Hi,
>
> I have two tables "user_t" and "email_alias_t". The "user_t" table
> has the two fields "last_name" and "linux_login" and the
> "email_alias_t" table has the two fields "login" and "alias".
>
> In some rows in the "user_t" table the entry "linux_login" is NULL.
>
> Now I need all rows from "user_t" and for those rows which have a
> "linux_login" I need the "alias" column from "email_alias_t".
>
> My SQL book descibes the *= operator which should be used for those
> queries but Postgres does not have it. I found out that it is
> possible to do the select with a union. This union:
In the PostgreSQL exist a operator *= , but is used for a array
(text[] ..etc), (now is distributed in the contrib tree).
I not sure, if I good undertend you, but good resolution for your
problem is prabably JOIN. But it not implement in PgSQL now
(it will in 7.0) :-(
Karel
From | Date | Subject | |
---|---|---|---|
Next Message | Sascha Ziemann | 1999-12-09 14:17:08 | Function arguments |
Previous Message | Adriaan Joubert | 1999-12-09 13:22:56 | Re: [GENERAL] get the previous assigned sequence value |