pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jean-Luc Lachance <jllachan@nsd.ca>
To: Josh Berkus <josh@agliodbs.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-sql@postgresql.org
Subject: Re: BOOLEAN question
Date: Wed, 30 Oct 2002 11:38:18 -0500
Message-ID: <3DC00AFA.3992DF0F@nsd.ca> (raw)
References: <web-1804001@davinci.ethosmedia.com>
	<3DC00823.7396E79C@nsd.ca>

Of course, I meant

SELECT COALESCE( (SELECT true FROM ... WHERE ...  AND boolcol LIMIT 1),
FALSE);

Jean-Luc Lachance wrote:
> 
> Why not simply:
> 
> SELECT COALESCE( (SELECT true FROM ... WHERE boolcol LIMIT 1), FALSE);
> 
> JLL
> 
> Josh Berkus wrote:
> >
> > Tom,
> >
> > > Perhaps
> > >       SELECT true = ANY (SELECT boolcol FROM ...);
> > > or
> > >       SELECT true IN (SELECT boolcol FROM ...);
> > >



view thread (10+ messages)

Message-ID: <3DC00AFA.3992DF0F@nsd.ca>
Permalink:  ../3DC00AFA.3992DF0F@nsd.ca/
Also on:    postgresql.org/message-id/3DC00AFA.3992DF0F@nsd.ca

 · 

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: jllachan@nsd.ca, josh@agliodbs.com, tgl@sss.pgh.pa.us
  Subject: Re: BOOLEAN question
  In-Reply-To: <3DC00AFA.3992DF0F@nsd.ca>

* 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