Birthsday list - Mailing list pgsql-general

From Svenne Krap
Subject Birthsday list
Date
Msg-id hm04rt86f6g5i4of6rh7l7vmaian9gl4ku@4ax.com
Whole thread Raw
List 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@krap.dk - svenne@krap.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

pgsql-general by date:

Previous
From: "Nick Fankhauser"
Date:
Subject: Re: Double Quoting Table Names????
Next
From: Vic Cekvneich
Date:
Subject: Re: JDBC update wont, plz help.