subselect return in where clause

Поиск
Список
Период
Сортировка
От Michael Hostbaek
Тема subselect return in where clause
Дата
Msg-id 20030128112123.GC67742@mich2.itxmarket.com
обсуждение исходный текст
Ответы Re: subselect return in where clause  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
Group,

Is it possible to use a subselect result in a where statement ? If so,
how ?

Fx.
select some_stuff, more_stuff, 
(select other_stuff from other_table where other_table.stuff ilike
stuff.match) as other_stuff from stuff where other_stuff = 'hello'

thanks.
-- 
Best Regards,Michael Landin Hostbaek FreeBSDCluster.org - an International Community
*/ PGP-key available upon request /*


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

Предыдущее
От: Bhuvan A
Дата:
Сообщение: Re: converting microsoft sql server 2000 sql-code for postgresql
Следующее
От: Geraint Jones
Дата:
Сообщение: Re: converting microsoft sql server 2000 sql-code for postgresql 7.2.1