pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paul Ganainm <paulsnewsgroups@hotmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: Using UNION inside a cursor
Date: Tue, 4 Nov 2003 15:02:57 -0000
Message-ID: <MPG.1a11c99fb139af0989699@news.gmane.org> (raw)
References: <007c01c39ec4$5af992f0$7502a8c0@hdsc.com>


sgnerd@yahoo.com.sg says...


>  (SELECT  * FROM history  WHERE obs_type = \'AA\' )
>  UNION 
>  (SELECT  * FROM  history  WHERE   obs_type = \'TA\');


Maybe I'm just confused here, but what's to stop you using 

SELECT * FROM History WHERE (Obs_Type = \'AA\' AND Obs_Type = \'TA\')


? Or have I missed something really obvious?


Paul...


-- 

plinehan__AT__yahoo__DOT__com

C++ Builder 5 SP1, Interbase 6.0.1.6 IBX 5.04 W2K Pro

Please do not top-post.




view thread (6+ messages)

Message-ID: <MPG.1a11c99fb139af0989699@news.gmane.org>
Permalink:  ../MPG.1a11c99fb139af0989699@news.gmane.org/
Also on:    postgresql.org/message-id/MPG.1a11c99fb139af0989699@news.gmane.org

 · 

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: paulsnewsgroups@hotmail.com
  Subject: Re: Using UNION inside a cursor
  In-Reply-To: <MPG.1a11c99fb139af0989699@news.gmane.org>

* 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