I've got table with following columns:
product_attribute_id,product_id,attribute_id,attribute_value
The data in table looks like this:
0,1,1,something
1,1,2,somethingelse
2,1,3,somethingelses
I would like to do something like this:
SELECT product_id FROM table WHERE attribute_id = 1 AND attribute_id = 2 AND attribute_id = 3
I understand why this don't work, I simply need to get the id of product, which STRICTLY has attribute_id 1,2,3, using IN
is probably out of the question.
Is there any way in mysql to achieve this?
Thx for your time :)