From: | Dipankar Chakrabarti <dipanc(at)yahoo(dot)com> |
---|---|
To: | pgsql-sql(at)hub(dot)org |
Subject: | Re: "order by" weirdness |
Date: | 1999-09-27 07:52:32 |
Message-ID: | 19990927075232.4435.rocketmail@web117.yahoomail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
>Hello,
Dear Hein,
What are you trying to do with order by max(date)?
Order by date will give proper result. For that
matter group by clause already does ordering, no need
to put a order by there.
Regards,
Dipankar
>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
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
From | Date | Subject | |
---|---|---|---|
Next Message | Stuart Rison | 1999-09-27 10:59:30 | Re: [SQL] comparing 2 tables. . . |
Previous Message | Hein Roehrig | 1999-09-27 00:59:07 | "order by" weirdness |