Multiple ORs failing #387
Answered
by
ujjwalguptaofficial
JasminDreasond
asked this question in
Q&A
|
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 |
Answered by
ujjwalguptaofficial
Dec 1, 2024
Replies: 4 comments 14 replies
|
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>
|
0 replies
|
What you want is this - |
5 replies
|
If you just want all or's condition without the city:'london', then here is equivalent query - |
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

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
andquery with member_type value also.