Re: Combinatorial problem

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: Combinatorial problem
Дата
Msg-id 20051130011601.GA25436@winnie.fuhr.org
обсуждение исходный текст
Ответ на Combinatorial problem  (Srinivas Iyyer <srini_iyyer_bio@yahoo.com>)
Список 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

В списке pgsql-novice по дате отправления:

Предыдущее
От:
Дата:
Сообщение: Re: PostgreSQL 8.1.0-2 WinXP Services
Следующее
От: Mogin Mohandas
Дата:
Сообщение: GIST indexes