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';