求和的sql话语

求和的sql语句
select ID,type,rkno,mount,date from table1 得到下图的结果:



如果要得到同一机种数量和的结果(ETC56-605N总计为22=4+12+6),其余项不变,求这个sum的写法。

------解决方案--------------------
select ID,type,group_concat(rkno),sum(mount),date from table1 group by type;
这样可以不
------解决方案--------------------
select ID,type,rkno,mount,date,(select sum(mount) from table1 where a.type=type) from table1 a
------解决方案--------------------
这些列能用一起合并到一行的话 可以用group_concat 函数。
要是保持原有的样子,就再家一个列,把这个sum值带过去(join)