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

Поиск
Список
Период
Сортировка
От Vincent Veyron
Тема Re: How to obtain the maximum value of a date, between 3 tables...
Дата
Msg-id 1291863798.2571.6.camel@asus-1001PX.home
обсуждение исходный текст
Ответ на Re: How to obtain the maximum value of a date, between 3 tables...  (Vincent Veyron <vv.lists@wanadoo.fr>)
Список pgsql-general
Le jeudi 09 décembre 2010 à 03:58 +0100, Vincent Veyron a écrit :

>
>  SELECT 'tbl1',last_refresh_date FROM tbl1 UNION SELECT 'tbl2',
> last_refresh_date FROM tbl2 UNION SELECT 'tbl3', last_refresh_date FROM
> tbl3 ORDER BY 1 DESC;
>

Argh... make that :

ORDER BY 2 DESC;



--
Vincent Veyron
http://marica.fr/
Progiciel de gestion des dossiers de contentieux et d'assurance pour le service juridique


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

Предыдущее
От: Fujii Masao
Дата:
Сообщение: Re: Postgresql 9.1 pg_last_xact_replay_timestamp limitations
Следующее
От: "James B. Byrne"
Дата:
Сообщение: Re: Set new owner on cloned database