Mysql
 sql >> Base de Dados >  >> RDS >> Mysql

sql group_concat e subconsulta


Tente isso::
SELECT 
ccm.id_model,group_concat(cm.tile, SEPARATOR ',') 
FROM 
car__car_model as ccm  
inner join car_model cm on (cm.id = ccm.id_advice_model) 
group by ccm.id_model