Filtering by values in a JSONB list and and/or conditions #3375
-
I am stuck with some basic understanding and would appreciate some pointers.
My table has a field called
I would like to get all rows where The first condition was easy: But I cannot figure out how to add the other rules. I thought I would just use
gives me
(XXX is a number, I replaced the values for this example in comparison to my real data so I do not know the number that would occur here.) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
When using the
should be:
Check if it works that way. |
Beta Was this translation helpful? Give feedback.
-
Thank you, that works like a charm. Could I have found out about this in the documentation somewhere? :) |
Beta Was this translation helpful? Give feedback.
When using the
or
operator, the comparisons inside should not use=
, but a dot.
instead. For instance, this:should be:
Check if it works that way.