Birthsday list

From: Svenne Krap <usenet(at)krap(dot)dk>
To: pgsql-general(at)postgresql(dot)org
Subject: Birthsday list
Date: 2001-09-26 16:35:55
Message-ID: hm04rt86f6g5i4of6rh7l7vmaian9gl4ku@4ax.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi.

I have a table roughly like this

create table friends(
friendid serial,
friendname varchar,
dateofbirth timestamp,
primary id(friendid));

and the data looks like

1 Tony 1978/01/28
2 Gary 1966/06/04
3 Jodie 1979/01/11

and so on..

How do i select from the table, so that I get the tuples ordered with
the one having birthsday first from now first (and then ascending
order) ???

Tia

Svenne
--
Mail usenet(at)krap(dot)dk - svenne(at)krap(dot)dk - PGP key id : 0xDF484022
ICQ: 5434480 - http://www.krap.dk - http://www.krap.net
PGP Key http://keys.pgp.dk:11371/pks/lookup?op=get&search=0xDF484022

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Edward Muller 2001-09-26 16:58:01 Double Quoting Table Names????
Previous Message Jeff Eckermann 2001-09-26 16:33:34 Re: Perl and Postgres