Re: Select + min question

Поиск
Список
Период
Сортировка
От Devrim GUNDUZ
Тема Re: Select + min question
Дата
Msg-id Pine.LNX.4.44.0206240917140.17268-100000@oper.metu.edu.tr
обсуждение исходный текст
Ответ на Re: Select + min question  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Список pgsql-sql
Hi,

On Sun, 23 Jun 2002, Christopher Kings-Lynne wrote:
> 
> Use a subselect (and don't compare to 't' if it's a boolean field...)
> 
> SELECT b_date FROM test WHERE active AND id=(SELECT min(id) FROM test) LIMIT
> 1;

It'a a shame for me that I could not think of using subselects :-(

Anyway, thanks.

Best regards.

-- 

Devrim GUNDUZ

devrim@oper.metu.edu.tr
devrim.gunduz@linux.org.tr

Web : http://devrim.oper.metu.edu.tr
-------------------------------------






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

Предыдущее
От: Joseph Syjuco
Дата:
Сообщение: variance aggregate function incorrect? Reference Materials reg create aggregate
Следующее
От: Christoph Haller
Дата:
Сообщение: Re: rowtype and ecpg