Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D6D78476212 for ; Fri, 20 Sep 2002 12:39:44 -0400 (EDT) Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (Postfix) with ESMTP id 31ED6475EEE for ; Fri, 20 Sep 2002 12:39:44 -0400 (EDT) Received: from [63.195.55.98] (account ) by davinci.ethosmedia.com (CommuniGate Pro WebUser 3.5.9) with HTTP id 1655011; Fri, 20 Sep 2002 09:38:38 -0700 From: "Josh Berkus" Subject: Re: help w/ constructing a SELECT To: Charles Hauser Cc: pgsql-sql@postgresql.org X-Mailer: CommuniGate Pro Web Mailer v.3.5.9 Date: Fri, 20 Sep 2002 09:38:38 -0700 Message-ID: In-Reply-To: <1032528124.23426.2.camel@pandorina.biology.duke.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/248 X-Sequence-Number: 9525 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