Re: [SQL] How to sort date - Mailing list pgsql-sql

From Brett W. McCoy
Subject Re: [SQL] How to sort date
Date
Msg-id Pine.LNX.4.04.9903060912150.506-100000@dragosani.lan2wan.com
Whole thread Raw
In response to How to sort date  (Zhenhua <zhenhua@megapro.com>)
List pgsql-sql
On Sat, 6 Mar 1999, Zhenhua wrote:

> How do I order by date such as
> select * order by thedate?
>
> The prefered date format for thedate:
> March 5, 1999.

Dates are stored in a different format than how they are displayed. You
can sort on dates, or compare dates with =, >, <, etc., to determine which
dates are earlier than others, which are concurrent, and so on.  Try doing
a date ordering and see what you get.

Brett W. McCoy
                                        http://www.lan2wan.com/~bmccoy/
-----------------------------------------------------------------------
OS/2 must die!

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GAT dpu s:-- a C++++ UL++++$ P+ L+++ E W++ N+ o K- w--- O@ M@ !V PS+++
PE Y+ PGP- t++ 5- X+ R+@ tv b+++ DI+++ D+ G++ e>++ h+(---) r++ y++++
------END GEEK CODE BLOCK------


pgsql-sql by date:

Previous
From: Martin Möderndorfer
Date:
Subject: ER, OMT chart of a database
Next
From: Fernando Carvalho
Date:
Subject: [SQL] Relations