 
      
    JavaScript
- 7 ответов
- 0 вопросов
    5
    Вклад в тег
    
      
      
    
  
  
select * from products where active = 1
and exists (select from product_attribute_value where product_id = products.id and attribute_id = 1 and value = 10)
and exists (select from product_attribute_value where product_id = products.id and attribute_id = 2 and value = 15)