pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus Schaber <schabi@logix-tt.com>
To: Mark Fenbers <Mark.Fenbers@noaa.gov>
Cc: PostgreSQL - SQL <pgsql-sql@postgresql.org>
Subject: Re: group by complications
Date: Thu, 16 Feb 2006 23:41:28 +0100
Message-ID: <43F4FF98.9090704@logix-tt.com> (raw)
In-Reply-To: <43F4BACB.60600@noaa.gov>
References: <20060214022937.77875.qmail@web54305.mail.yahoo.com>
	<43F4BACB.60600@noaa.gov>

Hi, Mark,

Mark Fenbers schrieb:
> Wow!  I didn't know you could have a (select ...) as a replacement for a
> 'from' table/query.  Your SQL worked as-is, except I had to add a 'limit
> 1' to the first subquery.
> 
> Thanks!  I would have never figured that out on my own!

SQL has more power than most think, and PostgreSQL does a good job in
implementing most of it. Much more than some other well known "free"
databases.

Have a look at http://www.postgresql.org/docs/8.1/static/sql-select.html
and the other SQL commands at
http://www.postgresql.org/docs/8.1/static/sql-commands.html (or your
local copy of the manual).

HTH,
Markus



view thread (4+ messages)

Message-ID: <43F4FF98.9090704@logix-tt.com>
Permalink:  ../43F4FF98.9090704@logix-tt.com/
Also on:    postgresql.org/message-id/43F4FF98.9090704@logix-tt.com

 · 

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: schabi@logix-tt.com, Mark.Fenbers@noaa.gov
  Subject: Re: group by complications
  In-Reply-To: <43F4FF98.9090704@logix-tt.com>

* 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