Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
has someone an idea how I can handle something like this:
if(category = '1' OR category '2', 'all', if(category='2', 'only 2')) AS categoryclass
thanks
Aloah
Please key in your question with some explanations to what you need..
Hello,
What about that Condition:
If(category='2',If(category = '1', 'all', 'only 2')) AS categoryclass
In your data can a single record have more than a single value the field category? Understanding the potential values of the field will help suggest the correct syntax of your conditional statement.
/emb
Pardon, there is the bracket wrong:
If(category='2',If(category = '1', 'all'), 'only 2') AS categoryclass