Answer the question
In order to leave comments, you need to log in
How to make such a Where in an SQL query on ActiveRecord?
Greetings!
There is a query to the database with the following condition:
...
WHERE ( `feature_id`, `value` ) IN ( ( 424, 'Бензин' ), ( 424, 'Гибрид' ), ( 424, 'Дизель' ) )
OR ( `feature_id`, `value` ) IN ( ( 425, 'Автоматическая' ), ( 425, 'Ручная' ) )
OR ( `feature_id`, `value` ) IN ( ( 426, 'Седан' ), ( 426, 'Фургон' ), ( 426, 'Универсал' ) )
...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question