We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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?
to your account
Submitted by: @mrotteveel
Implement FILTER-clause for aggregate functions (introduced in SQL:2003). This syntax allows for filtering before aggregation.
SUM(<expression>) FILTER(WHERE <condition>)
or with window functions:
SUM(<expression>) FILTER(WHERE <condition>) OVER (<window>)
Workarounds/alternative: use a CASE-expression within the aggregate function.
See also SQL:2016 10.9 <aggregate function> and https://modern-sql.com/feature/filter
Commits: 7206db3 e33ddf8
The text was updated successfully, but these errors were encountered:
assignee: Adriano dos Santos Fernandes [ asfernandes ]
Sorry, something went wrong.
status: Open [ 1 ] => Resolved [ 5 ]
resolution: Fixed [ 1 ]
Fix Version: 4.0 Beta 1 [ 10750 ]
status: Resolved [ 5 ] => Resolved [ 5 ]
QA Status: No test => Done successfully
status: Resolved [ 5 ] => Closed [ 6 ]
No branches or pull requests