Multiple ORs failing #387
-
I'm trying to make something like it: Select * from Table_Name where Column1=value1 and (Column2=value2 or Column2=value3 or Column2=value4); if(Column1 === value1 && (Column2 === value2 || Column2 === value3 || Column2 === value4))
return true; EDIT: I have a value of a message to receive that already has the values of which Room belongs, but I'm adding another condition that this value also needs to vary between 3 responses of the same string input. But that always fails, returning an array without my result |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 14 replies
-
It's giving me results - ![]() |
Beta Was this translation helpful? Give feedback.
-
I will have a look and provide resolution ASAP.
…On Sat, 30 Nov, 2024, 6:22 am Yasmin Seidel, ***@***.***> wrote:
Forget about London, I updated the URL above to get easier because I
realized that the example wasn't going to work properly.
—
Reply to this email directly, view it on GitHub
<#387 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACTOR56JRP6JL7475SFHMQD2DED3DAVCNFSM6AAAAABSWL4MM6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNBRHE3DQNY>
.
You are receiving this because you commented.Message ID:
***@***.***
.com>
|
Beta Was this translation helpful? Give feedback.
-
What you want is this -
|
Beta Was this translation helpful? Give feedback.
-
If you just want all or's condition without the city:'london', then here is equivalent query -
|
Beta Was this translation helpful? Give feedback.
The query is wrong as per your expectation. If in first query the condition fails and or condition satisfies then data is counted as valid.
You are writing -
I hope this makes sense.
If you want to return data only when those three column satisfy then you need to use
and
query with member_type value also.