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