pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
help need it
3+ messages / 3 participants
[nested] [flat]

* help need it
@ 2003-04-08 14:58 rute solipa <rutes@eselx.ipl.pt>
  2003-04-08 15:16 ` Re: help need it Stephan Szabo <sszabo@megazone23.bigpanda.com>
  2003-04-08 19:40 ` Re: help need it Achilleus Mantzios <achill@matrix.gatewaynet.com>
  0 siblings, 2 replies; 3+ messages in thread

From: rute solipa @ 2003-04-08 14:58 UTC (permalink / raw)
  To: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>

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?


best regards

etur




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: help need it
  2003-04-08 14:58 help need it rute solipa <rutes@eselx.ipl.pt>
@ 2003-04-08 15:16 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Stephan Szabo @ 2003-04-08 15:16 UTC (permalink / raw)
  To: rute solipa <rutes@eselx.ipl.pt>; +Cc: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>


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




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: help need it
  2003-04-08 14:58 help need it rute solipa <rutes@eselx.ipl.pt>
@ 2003-04-08 19:40 ` Achilleus Mantzios <achill@matrix.gatewaynet.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Achilleus Mantzios @ 2003-04-08 19:40 UTC (permalink / raw)
  To: rute solipa <rutes@eselx.ipl.pt>; +Cc: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>

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?

Can you check the postgresql manual if the (+) operator
means something related to OUTER joins?
If yes then use [LEFT|RIGHT] OUTER JOIN of postgresql.

> 
> 
> best regards
> 
> etur
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
> 

-- 
==================================================================
Achilleus Mantzios
S/W Engineer
IT dept
Dynacom Tankers Mngmt
Nikis 4, Glyfada
Athens 16610
Greece
tel:    +30-210-8981112
fax:    +30-210-8981877
email:  achill@matrix.gatewaynet.com
        mantzios@softlab.ece.ntua.gr




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2003-04-08 19:40 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-04-08 14:58 help need it rute solipa <rutes@eselx.ipl.pt>
2003-04-08 15:16 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
2003-04-08 19:40 ` Achilleus Mantzios <achill@matrix.gatewaynet.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox