SyntaxFix
Write A Post
Hire A Developer
Questions
To get the all related companies name, not based on particular Id.
SELECT (SELECT GROUP_CONCAT(cmp.cmpny_name) FROM company cmp WHERE FIND_IN_SET(cmp.CompanyID, odr.attachedCompanyIDs) ) AS COMPANIES FROM orders odr