"order by" weirdness

Поиск
Список
Период
Сортировка
От Hein Roehrig
Тема "order by" weirdness
Дата
Msg-id E11VP8G-0005nY-00@godot.normed.de
обсуждение исходный текст
Список pgsql-sql
Hello,

consider these three statements:

create table t (id integer, date datetime ) ;
select id from t group by id ;
select id from t group by id order by max(date) ;

Is it correct behavior that the second select returns one row where
as the first select returns zero rows? 

Thanks in advance for any help,
Hein




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [SQL] IFNULL - problem
Следующее
От: Dipankar Chakrabarti
Дата:
Сообщение: Re: "order by" weirdness