Re: help need it

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: rute solipa <rutes(at)eselx(dot)ipl(dot)pt>
Cc: "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: help need it
Date: 2003-04-08 15:16:34
Message-ID: 20030408081439.P50886-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance pgsql-sql


On Tue, 8 Apr 2003, rute solipa wrote:

> i've an oracle query:
>
> Select tb_users.ds_description, tb_users.cd_role, tb_users.cd_user,
> tb_users.ds_login, tb_monitores.cod_equipa from tb_users, tb_monitores
> where ds_login like 'varLogin' and ds_password like 'varPassword' and
> tb_users.cd_user = tb_monitores.cd_user(+)
>
> how can i transform it to an postgresql query?

Should be something like:

Select tb_users.ds_description, tb_users.cd_role, tb_users.cd_user,
tb_users.ds_login, tb_monitores.cod_equipa from tb_users left
outer join tb_monitores using (cd_user)
where ds_login like 'varLogin' and ds_password like 'varPassword';

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Achilleus Mantzios 2003-04-08 19:40:39 Re: help need it
Previous Message rute solipa 2003-04-08 14:58:57 help need it

Browse pgsql-sql by date

  From Date Subject
Next Message Antony Gubert 2003-04-08 15:41:17 unsubscribe
Previous Message rute solipa 2003-04-08 14:58:57 help need it