Skip to content
Advertisement

Many conditions depends on IF clause within WHERE clause

How can I implement a WHERE clause that depends on one @value condition, like that pseudocode below:

Advertisement

Answer

As you’ve seen you can’t use an if like that, but you can create the desired behavior using the and and or logical operators:

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement