Re: Window Function "Run Conditions"

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: Window Function "Run Conditions"
Дата
Msg-id CAApHDvq29swVhJZAgLfVsrXHU-sFbEDePaCzWfauv5UvWu13KA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Window Function "Run Conditions"  (Corey Huinker <corey.huinker@gmail.com>)
Ответы Re: Window Function "Run Conditions"  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-hackers
On Thu, 17 Mar 2022 at 17:04, Corey Huinker <corey.huinker@gmail.com> wrote:
> It seems like this effort would aid in implementing what some other databases implement via the QUALIFY clause, which
isto window functions what HAVING is to aggregate functions.
 
> example: https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax#qualify_clause

Isn't that just syntactic sugar?  You could get the same from adding a
subquery where a WHERE clause to filter rows evaluated after the
window clause.

David



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

Предыдущее
От: Mark Dilger
Дата:
Сообщение: Re: New Object Access Type hooks
Следующее
От: Tom Lane
Дата:
Сообщение: Re: New Object Access Type hooks