1 SELECT menu_date,cai_type,LISTAGG(cai_code,'-') WITHIN GROUP (ORDER BY NULL) FROM customer_menu_config GROUP BY menu_date,cai_type