How do get I data from column which contains multiple values for a single record to show in new columns with custom heading, without using string function in MYSQL.
Here is a subset of table which I have pulled using multiple joins.
Product | Category -------- | ------------ MSI60000 | Sunglasses MSI60000 | Minimal Coding MSI60001 | Glasses MSI60001 | Minimal Coding MSI60002 | Sunglasses MSI60002 | Short Coding MSI60003 | Goggles MSI60003 | Long Coding MSI60004 | Goggles MSI60004 | Shortcoded
I'm looking to achieve this from above table.
Product | Type | Coding -------- | ----------- | -------------- MSI60000 | Sunglasses | Minimal Coding MSI60001 | Glasses | Minimal Coding MSI60002 | Sunglasses | Short Coding MSI60003 | Goggles | Long Coding MSI60004 | Goggles | Shortcoded
Solution given here kind of helped me however it uses string functions which I can't use.