Re: help need it - Mailing list pgsql-sql

From Stephan Szabo
Subject Re: help need it
Date
Msg-id 20030408081439.P50886-100000@megazone23.bigpanda.com
Whole thread Raw
In response to help need it  (rute solipa <rutes@eselx.ipl.pt>)
List 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';



pgsql-sql by date:

Previous
From: rute solipa
Date:
Subject: help need it
Next
From: Achilleus Mantzios
Date:
Subject: Re: help need it