pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: KÖPFERL Robert <robert.koepferl@sonorys.at>
To: pgsql-sql@postgresql.org
Subject: Re: SQL equivalent to nested loop
Date: Tue, 7 Jun 2005 10:58:52 +0200
Message-ID: <ED4E30DD9C43D5118DFB00508BBBA76EB16745@neptun.sonorys.at> (raw)

Instead of tablenames just use functions (tablefunctions)

like my example
select a."Id", a."Code" from "GetLanguages"() a,  "GetLanguages"() b
"2","en"
"2","en"
"1","de"
"1","de"

|-----Original Message-----
|From: Markus Bertheau [mailto:twanger@bluetwanger.de]
|Sent: Dienstag, 07. Juni 2005 01:17
|To: KÖPFERL Robert
|Cc: pgsql-sql@postgresql.org
|Subject: RE: [SQL] SQL equivalent to nested loop
|
|
|Dnia 06-06-2005, pon o godzinie 20:08 +0200, KÖPFERL Robert napisał(a):
|> This is basicly a Join, a cross table
|> 
|> i.e.
|> 
|> select b.w from  table a, table b where ...
|
|You'd hope that. The problem is that you don't have the tables and
|afterwards specify the join condition, but in specifying the tables
|(=calling the function) you have the join condition already. I can't
|figure out the right syntax. What are you proposing?
|
|SELECT * from f(4, 'foo') as b, f(b.int, 'bar')?
|
|oocms=# select * from object_get_list_of_reference_property(311,
|'Themen') as b, object_get_list_of_reference_property(b.object_id,
|'Objekte');
|ERROR:  ?????????????? ????????? ??
|FROM ?? ????? ????????? ?? ?????? ????????? ?? ??? ?? ?????? ???????
|
|I can't get an english error message atm :/, but that doesn't work.
|
|Markus
|
|-- 
|Markus Bertheau <twanger@bluetwanger.de>
|



view thread (4+ messages)

Message-ID: <ED4E30DD9C43D5118DFB00508BBBA76EB16745@neptun.sonorys.at>
Permalink:  ../ED4E30DD9C43D5118DFB00508BBBA76EB16745@neptun.sonorys.at/
Also on:    postgresql.org/message-id/ED4E30DD9C43D5118DFB00508BBBA76EB16745@neptun.sonorys.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: robert.koepferl@sonorys.at
  Subject: Re: SQL equivalent to nested loop
  In-Reply-To: <ED4E30DD9C43D5118DFB00508BBBA76EB16745@neptun.sonorys.at>
  References: <ED4E30DD9C43D5118DFB00508BBBA76EB16745@neptun.sonorys.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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