pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Federico Pedemonte <fepede@fastwebnet.it>
To: pgsql-sql@postgresql.org
Subject: Re: Multiple SRF parameters from query
Date: Sat, 04 Jun 2005 18:19:35 +0200
Message-ID: <1117901975.4210.9.camel@localhost.localdomain> (raw)
In-Reply-To: <02767D4600E59A4487233B23AEF5C59922C2B7@blrmail1.aus.pervasive.com>
References: <02767D4600E59A4487233B23AEF5C59922C2B7@blrmail1.aus.pervasive.com>

On Wed, 2005-06-01 at 10:29 +0530, Ramakrishnan Muralidharan wrote:
> Hi,
> 
>   I am not able to understand "Returning only one row", since 'aaa' having 2 rows and 'bbb' having 3 rows and what criteria single row should be returned. Please let me know the expected result and I will try to find out a solution for it.

Sorry, it was not clear from my message.

I meant that I had success creating a table as a result of multiple
invocation of foo (parameter) using the result of an "outer" query as
list of parameter to foo, only if foo () is a "normal" function,
returning a simple value.

It was a misleading sentence anyway, since what i'm asking help for is
the case where foo () is a SRF and returns more than 1 row.

What i'm trying to do is a query where i get a result of this kind

a | b | c
--+---+---
1 | 2 | 3     
5 | 9 | 1
4 | 0 | 0 
2 | 0 | 0
0 | 0 | 0 

given that i select from the table Anagrafica the fields 'aaa' and
'bbb', where the first 2 rows obtained as the result of foo ('aaa') and
the latter 3 as the result of foo ('bbb').

Thanks a lot for help !

PS: Sorry for late answering, i had problems with mail. 

Regards,
	Federico.





view thread (4+ messages)  latest in thread

Message-ID: <1117901975.4210.9.camel@localhost.localdomain>
Permalink:  ../1117901975.4210.9.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1117901975.4210.9.camel@localhost.localdomain

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: fepede@fastwebnet.it
  Subject: Re: Multiple SRF parameters from query
  In-Reply-To: <1117901975.4210.9.camel@localhost.localdomain>

* 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