By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
product_id | model | GROUP_CONCAT(attr.attribute_id order by attr.attribute_id ASC) | a5 | a6 | a7 |
---|---|---|---|---|---|
1 | 8010054 | 1,2,3,5,6,7,8,9,10 | 1 | 1 | 1 |
2 | 803330054 | 2,5,7 | 1 | 0 | 1 |
product_id | model | GROUP_CONCAT(attr.attribute_id) |
---|---|---|
1 | 8010054 | 7,9,8,5,6,2,1,3,10 |
model | product_id |
---|---|
8010054 | 1 |
model | product_id |
---|---|
8010054 | 1 |
model | product_id |
---|---|
8010054 | 1 |