BillButton
Programmer
Hi,
I am new to this forum and hope I can get some good info.
I am trying to write an sql statement that has a group by and concatinates a field as one string. I have been trying to use the following but with no success. I have tried many ways but none seam to work.
select distinct wieghts.part_no,sum(wieght) as wieght, concat(material_code) as allmaterials
from wieghts
where part_no like 'DH/Y0%'
group by wieghts.part_no
Kind Regards
Bill Button
I am new to this forum and hope I can get some good info.
I am trying to write an sql statement that has a group by and concatinates a field as one string. I have been trying to use the following but with no success. I have tried many ways but none seam to work.
select distinct wieghts.part_no,sum(wieght) as wieght, concat(material_code) as allmaterials
from wieghts
where part_no like 'DH/Y0%'
group by wieghts.part_no
Kind Regards
Bill Button