I\'m quite a begginer and I have two tables: \"product\" and \"product attributes\".
Here\'s some imaginary data (the actual stuff involves more tables )
Pr
let me post simple imaginary data ( the actual stuff involves more tables )
table products
product_id | product_name
10 | aaa
11 | bbb
table product_attribute
attribute_id | product_id <br>
21 | 10
23 | 10
24 | 10
21 | 11
24 | 11
i want that:
(21,24)
to be returned only product 11 (bbb)(21,23,24)
to be returned both products(21)
only to be returned none ( because no product has only that attribute )