pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mikael Suokas <csuokas@cc.hut.fi>
To: pgsql-docs@postgresql.org
Subject: Tutorial documentation bug
Date: Fri, 6 Oct 2000 17:54:50 +0300 (EET DST)
Message-ID: <Pine.OSF.4.10.10010061727200.24588-100000@alpha.hut.fi> (raw)


Hi,

While reading the tutorial at
http://www.postgresql.org/docs/tutorial/sql-language.htm
I came across a bug. 

In Chapter 2, Example 2-9.: "Union, Intersect, Except"
the tutorial states:

-------------- start quote ------------------
Here an example for INTERSECT: 

SELECT S.SNO, S.SNAME, S.CITY
    FROM SUPPLIER S
    WHERE S.SNO > 1
    INTERSECT
    SELECT S.SNO, S.SNAME, S.CITY
    FROM SUPPLIER S
    WHERE S.SNO > 2;
        

gives the result: 

 SNO | SNAME |  CITY
-----+-------+--------
  2  | Jones | Paris
        

The only tuple returned by both parts of the query is the one having
$SNO=2$. 

---------------- end quote -------------------

The result is really:

 sno | sname |  city  
-----+-------+--------
   3 | Adams | Vienna
   4 | Blake | Rome
(2 rows)


Kind regards,

  - Mikael -

P.S. I am not on the pgsql-docs mailing list, so I won't
     see any replies sent there.




Message-ID: <Pine.OSF.4.10.10010061727200.24588-100000@alpha.hut.fi>
Permalink:  ../Pine.OSF.4.10.10010061727200.24588-100000@alpha.hut.fi/
Also on:    postgresql.org/message-id/Pine.OSF.4.10.10010061727200.24588-100000@alpha.hut.fi

 · 

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-docs@postgresql.org
  Cc: csuokas@cc.hut.fi
  Subject: Re: Tutorial documentation bug
  In-Reply-To: <Pine.OSF.4.10.10010061727200.24588-100000@alpha.hut.fi>
  References: <Pine.OSF.4.10.10010061727200.24588-100000@alpha.hut.fi>

* 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