SELECT price from items Where categoryId = 11724 AND price BETWEEN 10 AND 20
Result:
price
17.99
18.95
20.0
17.99
18.95
Above query works fine but adding another clause doesn't show desired results
SELECT price from items
Where categoryId = 11724
AND ( brand = 'Akaso' OR brand = 'Andoer')
and price BETWEEN 10 AND 20
Result: 0 rows found
SELECT price from items
Where categoryId = 11724
AND brand = 'Akaso' OR brand = 'Andoer'
and price BETWEEN 10 AND 20
Result:
price
17.99
78.95
77.0
80.99
102.95
Have tried with and (column and column)
for each clause. price
type is VARCHAR
CHANGED TO Decimal(10,2)
Where am i doing wrong?