pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tim Lynch <admin@thirdage.com>
To: pgsql-admin@postgresql.org
Cc: Steve Crawford <scrawford@pinpointresearch.com>
Cc: Robert Treat <xzilla@users.sourceforge.net>
Cc: Devinder K Rajput <Devinder.Rajput@ipaper.com>
Cc: Bruno Wolff III <bruno@wolff.to>
Cc: Nigel J. Andrews <nandrews@investsystems.co.uk>
Subject: Re: OT: seeking query help, where?
Date: Thu, 16 Jan 2003 17:06:21 -0800
Message-ID: <005901c2bdc4$a6174de0$2c0210ac@loisaida> (raw)
References: <071501c2bdac$cabaa790$2c0210ac@loisaida>
	<20030116224703.82303103DE@polaris.pinpointresearch.com>

UNION! thanks everyone!

i'll take this stuff up on the pgsql-sql list in the future.

union does intra- and inter- table distinct, notice `red' and `two':

test=> select str from foo ;
 str
-----
 one
 two
 two
 red
(4 rows)

test=> select str from bar ;
  str
--------
 red
 orange
 yellow
 green
 blue
 indigo
 violet
 red
(8 rows)

test=> select str from foo union ( select str from bar ) ;
  str
--------
 blue
 green
 indigo
 one
 orange
 red
 two
 violet
 yellow
(9 rows)




view thread (13+ messages)  latest in thread

Message-ID: <005901c2bdc4$a6174de0$2c0210ac@loisaida>
Permalink:  ../005901c2bdc4$a6174de0$2c0210ac@loisaida/
Also on:    postgresql.org/message-id/005901c2bdc4$a6174de0$2c0210ac@loisaida

 · 

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-admin@postgresql.org
  Cc: admin@thirdage.com, scrawford@pinpointresearch.com, xzilla@users.sourceforge.net, Devinder.Rajput@ipaper.com, bruno@wolff.to, nandrews@investsystems.co.uk
  Subject: Re: OT: seeking query help, where?
  In-Reply-To: <005901c2bdc4$a6174de0$2c0210ac@loisaida>
  References: <071501c2bdac$cabaa790$2c0210ac@loisaida> <20030116224703.82303103DE@polaris.pinpointresearch.com> <005901c2bdc4$a6174de0$2c0210ac@loisaida>

* 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