I try to execute this SQL-query, but I don't get the right result:
SELECT k.product_id, product.sku, group_concat(i.value)
FROM catalog_product_super_link AS par
LEFT JOIN staging.catalog_category_product k ON k.product_id = par.parent_id
LEFT JOIN catalog_product_entity AS product ON k.product_id = product.entity_id
LEFT JOIN catalog_category_entity_varchar AS p ON p.entity_id = k.category_id LEFT JOIN catalog_category_entity_varchar i ON i.entity_id = k.category_id
WHERE product.entity_id = 368538
GROUP BY par.parent_id, k.category_id
Can someone help?