0

I'm trying to convert this query to SQLAlchemy

SELECT count(*) FILTER(where condition) as cnt FROM table

Can someone give me minimal example of this? Can't find anything in the docs.

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.