Re: help w/ constructing a SELECT - Mailing list pgsql-sql

From Josh Berkus
Subject Re: help w/ constructing a SELECT
Date
Msg-id web-1655011@davinci.ethosmedia.com
Whole thread Raw
In response to help w/ constructing a SELECT  (Charles Hauser <chauser@duke.edu>)
List pgsql-sql
Charles,

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

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

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

got it?

-Josh Berkus


pgsql-sql by date:

Previous
From: Aaron Held
Date:
Subject: Monitoring a Query
Next
From: Bruce Momjian
Date:
Subject: Re: [GENERAL] Monitoring a Query