Received: from water2.cs.umass.edu (water2.cs.umass.edu [128.119.40.165]) by hub.org (8.9.3/8.9.3) with ESMTP id PAA14824 for ; Fri, 6 Aug 1999 15:59:03 -0400 (EDT) (envelope-from clynch@water2.cs.umass.edu) Received: (from clynch@localhost) by water2.cs.umass.edu (8.8.8/8.8.7) id PAA29068 for pgsql-interfaces@postgresql.org; Fri, 6 Aug 1999 15:59:02 -0400 (EDT) Date: Fri, 6 Aug 1999 15:59:02 -0400 (EDT) From: "Collin F. Lynch" Message-Id: <199908061959.PAA29068@water2.cs.umass.edu> To: pgsql-interfaces@postgresql.org Subject: spi, tuples Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-MD5: /NHnxw8I1ZnqS1JZDiA3vg== Greetings, Is there any way to have an spi function return the result of a query, or to connect two tables in a view? Specifically, I have a table of times and locations from an aerial flight, and a table of images from that flight, and I would like to select the images that occur within a specified area. I had thought to join two tables in a view which I know that you can do with other databases but I cannot seem to determine how to do it in postgres. Alternately I had thought to use an spi function but I do not know how or if I can have it return the result of a select statement of more than one record. The database ins Postgresql 6.5.1 on a Linux (RH 6) box. Any help would be appreciated. Collin Lynch.