Re: Why lower's not accept an AS declaration ?

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: Why lower's not accept an AS declaration ?
Дата
Msg-id 3F412A3B.7070602@joeconway.com
обсуждение исходный текст
Ответ на Re: Why lower's not accept an AS declaration ?  (Hervé Piedvache <herve@elma.fr>)
Список pgsql-general
Hervé Piedvache wrote:
> An to be more precise what I exactly want to do :
>
> select
> case when 'now' between t.begin and t.end then t.login else 'None' end as log
> from my_table t
> order by lower(log);
>

Try:

select log from (select case when 'now' between t.begin and t.end then
t.login else 'None' end as log from my_table t) as ss order by lower(log);

HTH,

Joe


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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Why lower's not accept an AS declaration ?
Следующее
От:
Дата:
Сообщение: Re: Simulating sequences