Delete Question

Поиск
Список
Период
Сортировка
От Alex
Тема Delete Question
Дата
Msg-id 43968D75.6020804@meerkatsoft.com
обсуждение исходный текст
Ответы Re: Delete Question  (hubert depesz lubaczewski <depesz@gmail.com>)
Re: Delete Question  (Michael Glaesemann <grzm@myrealbox.com>)
Re: Delete Question  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Re: Delete Question  (Pandurangan R S <pandurangan.r.s@gmail.com>)
Список pgsql-general
Hi,

I have a table where I store changes made to an order. The looks like
ProdID, ChangeDate, Change1, Change2, ... etc.
Some ProdIDs have multiple records.

Is there an easy way to delete all records of a ProdID except the most
recent (ChangeDate is timestamp) one? Preferably in one SQL statement?

Thanks for any advise

Alex

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

Предыдущее
От: "A.j. Langereis"
Дата:
Сообщение: Re: Letting a function return multiple columns instead of a single complex one
Следующее
От: Emil Rachovsky
Дата:
Сообщение: Re: [SQL] lost in system tables