-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Window keyword support #71
Comments
I'm not familiar with that keyword. Should "window" be formatted like On Mon, Dec 8, 2014, 13:54 Grégoire HUBERT [email protected] wrote:
|
"window" is a declaration the same level as "from". It declares a data window some functions in the select use to give related data between each other (aka window functions, see Postgres documentation) Syntax can be: select
wdw_function(field) over wdw_name as column,
…
from table1
join table2 …
other joins
window wdw_name as (partition by field1 order by field2 desc)
… or inline: select
wdw_function(field) over (partition by field1 order by field2) as column,
… A comprehensive guide of SQL window syntax can be found in Postgres documentation. |
It seems sql-formatter does not recognize the
window
SQL keyword (SQL2003, Postgres does support it). The following queryis output as
sql-formatter 1.2.17
The text was updated successfully, but these errors were encountered: