Detecting change in event properties

Поиск
Список
Период
Сортировка
От Robert James
Тема Detecting change in event properties
Дата
Msg-id CAGYyBgimf+zOcQ0vdJvP6S+Wu=r+LK-gFHPXpwvx8Cn-mpHixg@mail.gmail.com
обсуждение исходный текст
Ответы Re: Detecting change in event properties  (Robert James <srobertjames@gmail.com>)
Re: Detecting change in event properties  (David Johnston <polobo@yahoo.com>)
Список pgsql-general
I have a table of (timed) events, and I'm interested in marking events
whose properties have changed from the previous event.

I believe this can be done with window functions, but I'm not sure
how.  What window function can give me a field from the _previous_
row?

(To elaborate, I'm interested in:
* Finding field x of the _previous_ row
* Finding field x of the _next_ row
* Finding field x of the _previous_ row that meets a certain criteria
(which the current row may or may not meet)
)

I must say that window functions are amazing - they're a whole new
world, really.


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

Предыдущее
От: Robert James
Дата:
Сообщение: Re: Count of records in a row
Следующее
От: Robert James
Дата:
Сообщение: Window functions and relational algebra