Re: help w/ constructing a SELECT

From: "Josh Berkus" <josh(at)agliodbs(dot)com>
To: Charles Hauser <chauser(at)duke(dot)edu>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: help w/ constructing a SELECT
Date: 2002-09-20 16:38:38
Message-ID: web-1655011@davinci.ethosmedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Charles,

> > 3. All contigs where all clones have read = 'x'

SELECT * FROM contigs
WHERE NOT EXISTS ( SELECT contig_id
FROM clones WHERE clones.contig_id = contigs.contig_id
AND read <> 'x');

i.e. "Select all contigs not having any clone whose read is something
other than 'x' "

got it?

-Josh Berkus

Browse pgsql-sql by date

  From Date Subject
Next Message Jean-Luc Lachance 2002-09-20 18:22:37 Getting acces to MVCC version number
Previous Message Bruce Momjian 2002-09-20 16:19:04 Re: Monitoring a Query