Re: How to obtain the maximum value of a date, between 3 tables...

Поиск
Список
Период
Сортировка
От Jasen Betts
Тема Re: How to obtain the maximum value of a date, between 3 tables...
Дата
Msg-id ieen3l$j8e$1@reversiblemaps.ath.cx
обсуждение исходный текст
Ответ на How to obtain the maximum value of a date, between 3 tables...  (Andre Lopes <lopes80andre@gmail.com>)
Список pgsql-general
On 2010-12-08, Andre Lopes <lopes80andre@gmail.com> wrote:
> --20cf3043476e053b5f0496e5ebc4
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi,
>
> I need to obtain the maximum value of a date, but that comparison will be
> made between 3 tables... I will explain better with a query...

you probably want
  greatest(d1,d2,d3)
or possibly
  max(greatest(d1,d2,d3))


--
⚂⚃ 100% natural

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

Предыдущее
От: Ray Stell
Дата:
Сообщение: Re: PANIC: ERRORDATA_STACK_SIZE exceeded
Следующее
От: Jasen Betts
Дата:
Сообщение: Re: if-clause to an exiting statement