X Tutup
The Wayback Machine - https://web.archive.org/web/20201011182939/https://github.com/JSQLParser/JSqlParser/issues/934
Skip to content
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

Support Postgres filter clause #934

Closed
SerialVelocity opened this issue Jan 23, 2020 · 0 comments
Closed

Support Postgres filter clause #934

SerialVelocity opened this issue Jan 23, 2020 · 0 comments

Comments

@SerialVelocity
Copy link

@SerialVelocity SerialVelocity commented Jan 23, 2020

Postgres can have filter clauses inside of the select:

SELECT
  COUNT(*) AS unfiltered,
  COUNT(*) FILTER (WHERE i < 5) AS filtered
FROM generate_series(1,10) AS s(i);

(example taken from https://medium.com/little-programming-joys/the-filter-clause-in-postgres-9-4-3dd327d3c852)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

1 participant
You can’t perform that action at this time.
X Tutup