Prøv dette...
SELECT Customer.Company,GROUP_CONCAT(Customer.ContactPerson) AS 'AllContactPerson'
FROM Customer GROUP BY Customer.Company
dette vil give dig som under resultat (hvis ContactPerson oplysninger kommer fra Customer
). bord. )
Company | AllContactPerson
--------------------------------
Company 1 | Alex,Tom