How does OR condition works in WHERE clause for SELECT statements in scylladb.
I have created secondary index on email. Below query works fine and return result.
cqlsh> select * from test.d_emp where email='robs@ex.com';
id | dept | email | first_name | last_name | salary
-----+------+-------------+------------+-----------+--------
10 | 10 | robs@ex.com | Rob | Stark | 1000
1 | 10 | robs@ex.com | Rob | Stark | 1000
101 | 10 | robs@ex.com | Rob | Stark | 1000
(3 rows)
However if I use two conditions using OR operator it is giving syntax error. Even a simple 1=1 is also giving same error.
cqlsh> select * from test.d_emp where email='robs@ex.com' or email='robs@ex';
SyntaxException: line 1:51 : syntax error...
cqlsh>
cqlsh> select * from test.d_emp where email='robs@ex.com' or 1=1;
SyntaxException: line 1:51 : syntax error...
cqlsh>
Please help me to understand how to combine multiple conditions in where clause in Scylladb.