pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tod McQuillin <devin@spamcop.net>
To: Jens Hartwig <jhartwig@debis.com>
Cc: Nikolaj Lundsgaard <Nikolaj@konfus.dk>
Cc: pgsql-sql@postgresql.org
Subject: Re: Sv: how to build this query ??? Please help !!!
Date: Thu, 4 Jan 2001 01:53:05 -0600 (CST)
Message-ID: <Pine.GSO.4.31.0101040151430.3519-100000@sysadmin> (raw)
In-Reply-To: <3A5423BB.C8C505FC@debis.com>

On Thu, 4 Jan 2001, Jens Hartwig wrote:

> > SELECT a_nr,
> > (SELECT count(*) FROM cylinders WHERE z_a_nr = a_nr) AS #cylinder,
> > [...]
> > FROM orders
>
> Is this a documented feature? Where can I find more information about
> this?  I do not want to join the actual discussion about documentation
> of PostgreSQL but I never before have seen such a construct in SQL!

Subqueries are covered in Bruce Momjian's book:
http://www.postgresql.org/docs/aw_pgsql_book/node93.html

I don't think the PostgreSQL User's Manual mentions sub-selects.
-- 
Tod McQuillin





view thread (12+ messages)  latest in thread

Message-ID: <Pine.GSO.4.31.0101040151430.3519-100000@sysadmin>
Permalink:  ../Pine.GSO.4.31.0101040151430.3519-100000@sysadmin/
Also on:    postgresql.org/message-id/Pine.GSO.4.31.0101040151430.3519-100000@sysadmin

 · 

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: devin@spamcop.net, jhartwig@debis.com, Nikolaj@konfus.dk
  Subject: Re: how to build this query ??? Please help !!!
  In-Reply-To: <Pine.GSO.4.31.0101040151430.3519-100000@sysadmin>
  References: <3A5423BB.C8C505FC@debis.com> <Pine.GSO.4.31.0101040151430.3519-100000@sysadmin>

* 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