Re: Combinatorial problem

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Srinivas Iyyer <srini_iyyer_bio(at)yahoo(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Combinatorial problem
Date: 2005-11-30 01:16:01
Message-ID: 20051130011601.GA25436@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Tue, Nov 29, 2005 at 03:44:10PM -0800, Srinivas Iyyer wrote:
> Now my question is how can I ask SQL the question:
>
> For T3 what are the Drugs ?
> For T4 what are the drugs?
>
> For a group of drugs m1,m3,m5 what are the targets?

I think you're looking for a join. These parts of the PostgreSQL
documentation should help:

http://www.postgresql.org/docs/8.1/interactive/tutorial-join.html
http://www.postgresql.org/docs/8.1/interactive/queries-table-expressions.html

You could also google for words like "sql tutorial join".

--
Michael Fuhr

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Mogin Mohandas 2005-11-30 03:33:25 GIST indexes
Previous Message me 2005-11-30 01:05:24 Re: PostgreSQL 8.1.0-2 WinXP Services