Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 0AA59475A71 for ; Thu, 19 Sep 2002 19:40:14 -0400 (EDT) Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (Postfix) with ESMTP id 52EB1475FC6 for ; Thu, 19 Sep 2002 19:40:13 -0400 (EDT) Received: from [66.219.92.2] (HELO chocolate-mousse) by davinci.ethosmedia.com (CommuniGate Pro SMTP 3.5.9) with ESMTP id 1654301; Thu, 19 Sep 2002 16:39:49 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: Charles Hauser , PSQL_list Subject: Re: help w/ constructing a SELECT Date: Thu, 19 Sep 2002 16:40:50 -0700 X-Mailer: KMail [version 1.4] References: <1032446475.22067.29.camel@pandorina.biology.duke.edu> In-Reply-To: <1032446475.22067.29.camel@pandorina.biology.duke.edu> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200209191640.50353.josh@agliodbs.com> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/230 X-Sequence-Number: 9507 Charles, > Having a problem with a query. > I would like to construct a query which will return a list of all > contigs which are comprised of clones whose 'read' =3D 'x' (read can be > either 'x' or 'y'). It appears that you haven't formulated clearly what you want to get. I can= =20 see 3 possibilities: 1. All contigs with one or more clones whose read =3D 'x' and those clones. 2. All contigs with one or more clones whose read =3D 'x' and all of those= =20 contig's clones 3. All contigs where all clones have read =3D 'x' Which do you want?=20=20 --=20 -Josh Berkus Aglio Database Solutions San Francisco