pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gavin Flower <GavinFlower@archidevsys.co.nz>
To: pgsql-docs@postgresql.org
Subject: pg 9.1beta3 typo in 7.2.3
Date: Fri, 15 Jul 2011 20:41:31 +1200
Message-ID: <4E1FFD3B.5090708@archidevsys.co.nz> (raw)

I think that there is a typo in the paragraph: 'x' used instead of 'y' 
in 'GROUP BY'.

postgres-9.1beta3/share/doc/html/queries-table-expressions.html


7.2.3. The GROUP BY and HAVING Clauses
[...]
=> SELECT x FROM test1 GROUP BY x;
  x
---
  a
  b
  c
(3 rows)

In the second query, we could not have written SELECT * FROM test1 GROUP 
BY x, because there is no single value for the column y that could be 
associated with each group. The grouped-by columns can be referenced in 
the select list since they have a single value in each group.
[...]

The paragraph should read "...SELECT * FROM test1 GROUP BY y..."


Cheers,
Gavin



view thread (2+ messages)  latest in thread

Message-ID: <4E1FFD3B.5090708@archidevsys.co.nz>
Permalink:  ../4E1FFD3B.5090708@archidevsys.co.nz/
Also on:    postgresql.org/message-id/4E1FFD3B.5090708@archidevsys.co.nz

 · 

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-docs@postgresql.org
  Cc: GavinFlower@archidevsys.co.nz
  Subject: Re: pg 9.1beta3 typo in 7.2.3
  In-Reply-To: <4E1FFD3B.5090708@archidevsys.co.nz>

* 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