Birthsday list

Поиск
Список
Период
Сортировка
От Svenne Krap
Тема Birthsday list
Дата
Msg-id hm04rt86f6g5i4of6rh7l7vmaian9gl4ku@4ax.com
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: "Nick Fankhauser"
Дата:
Сообщение: Re: Double Quoting Table Names????
Следующее
От: Vic Cekvneich
Дата:
Сообщение: Re: JDBC update wont, plz help.