problem query ...

Поиск
Список
Период
Сортировка
От John Taylor
Тема problem query ...
Дата
Msg-id 02013116240705.01674@splash.hq.jtresponse.co.uk
обсуждение исходный текст
Ответы Re: problem query ...  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: problem query ...  (Frank Bax <fbax@sympatico.ca>)
Re: problem query ...  (Ugly Hippo <ugly_hippo@yahoo.ca>)
Список pgsql-novice
Hi,

I hope someone can help with this query, which is causing me great problems.

I have a table:
create table mytable ( id varchar(10), name varchar(10), desc varchar(10), update integer);

I want to return 1 row for each id, that contains the maximum update value for that id, and
the values for name and desc.

I've tried everything I can think of, but no luck :-(
I'm sure there is some simple trick that I'm missing.

Can someone please put me out of my misery !

Thanks
JohnT

В списке pgsql-novice по дате отправления:

Предыдущее
От: Bob Savage
Дата:
Сообщение: Re: column headers all in upper-case letters?
Следующее
От: Chris Thompson
Дата:
Сообщение: Re: column headers all in upper-case letters?