Skip to content

Logical Operators combining two ANDS with an OR #3922

Answered by wolfgangwalther
wyndhurst asked this question in Q&A
Discussion options

You must be logged in to vote

You can nest those operators:

https://www.anon.com/api/note?or=(and(created.gte.2024-12-01,created.lte.2025-02-28),and(id.gte.2,id.lte.5))

There is also an example of that in https://docs.postgrest.org/en/v12/references/api/tables_views.html#logical-operators.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wyndhurst
Comment options

Answer selected by wolfgangwalther
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants