Re: SQL - finding next date

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: SQL - finding next date
Дата
Msg-id b42b73150704120849n52cc491ev2fe7a7936c2f5f4b@mail.gmail.com
обсуждение исходный текст
Ответ на Re: SQL - finding next date  (Raymond O'Donnell <rod@iol.ie>)
Ответы Re: SQL - finding next date
Список pgsql-general
On 4/12/07, Raymond O'Donnell <rod@iol.ie> wrote:
> On 11/04/2007 21:15, Jon Sime wrote:
>
> >> This is probably a very simple one, but I just can't see the answer and
> >> it's driving me nuts. I have a table holding details of academic terms,
>
> Many thanks indeed to all who replied - I particularly like Jeff's
> solution, and will use that one.

I think this is by far the cleanest:

select * from term where start_date > (select start_date from term
where name = 'foo') order by start_date limit 1;

merlin

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

Предыдущее
От: Raymond O'Donnell
Дата:
Сообщение: Re: SQL - finding next date
Следующее
От: Guy Rouillier
Дата:
Сообщение: Re: Oracle mailing lists