hi guys is it posible to use GROUP_CONCAT and CONCAT function in same query i am trying to use
SELECT GROUP_CONCAT(CONCAT(idmaterial,percent)) as 'material' FROM a_m where idarticle=1
to get result like this in one row one column
material
----------
1 5%10 6%80 1%10
please help me with your ideas thanks a lot here is my table thanks a lot for your helps
idarticle |idmaterial| percent
---------- ---------- ----------
1 5 10
---------- ---------- ----------
1 6 80
---------- ---------- ----------
1 1 10
---------- ---------- ----------
2 1 90
---------- ---------- ----------
2 2 10
---------- ---------- ----------
GROUP_CONCATgoes withGROUP BY:And to put in one column you can use: