Probeer dit:
SELECT category, GROUP_CONCAT(ProdName) as Product
FROM recipes
GROUP BY category
ORDER BY category, ProdName ASC
Uitvoer:
CATEGORY PRODUCT ---------------------------------------------------------- Mustards Hot Mustard,Horseradish Mustard,Honey Mustard Sauces Tomato Sauce,Barbeque Sauce