Re: [SQL] SQL equivalent to nested loop

2005-06-07 Thread KÖPFERL Robert
; |-Original Message- |From: Markus Bertheau [mailto:[EMAIL PROTECTED] |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): |&

Re: [SQL] SQL equivalent to nested loop

2005-06-06 Thread Markus Bertheau
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

Re: [SQL] SQL equivalent to nested loop

2005-06-06 Thread KÖPFERL Robert
This is basicly a Join, a cross table i.e. select b.w from table a, table b where ... |-Original Message- |From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] |Sent: Montag, 06. Juni 2005 18:53 |To: pgsql-sql@postgresql.org |Subject: [SQL] SQL equivalent to nested loop | | |Hi, | |I

[SQL] SQL equivalent to nested loop

2005-06-06 Thread Markus Bertheau ☭
Hi, I basically need the SQL equivalent of the following pseudo code: BEGIN FOR v IN SELECT * FROM f(4, 'foo') LOOP FOR w IN SELECT * FROM f(v.id, 'bar') LOOP RETURN NEXT W END LOOP; END LOOP; RETURN; Is that possible in SQL? Markus -- Markus Bertheau ☭ <[EMAIL PROTECTED]> -