Re: [SQL] Finding the "most recent" rows

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: [SQL] Finding the "most recent" rows
Дата
Msg-id
20915.924840503@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
Re: [SQL] Finding the "most recent" rows Chris Bitmead <chris.bitmead@bigfoot.com>
Re: [SQL] Finding the "most recent" rows Herouth Maoz <herouth@oumail.openu.ac.il>
Chris Bitmead  writes:
>>>> select title, summary, time from story t where time = (select
>>>> max(s.time) from story s GROUP BY s.title);

> Why doesn't replacing "=" with "IN" produce a result? It wouldn't be the
> desired result, but I thought this was legal.

I thought so too (on both counts).  Are you saying it doesn't work?
What happens?  Which version are you using?
		regards, tom lane

В списке pgsql-sql по дате отправления
От: Chris Bitmead
Дата:
От: Brook Milligan
Дата:
FAQ