SELECT batch_Id , kod , chart_code , desc_text , group_1Digit , group_2Digit , group_3Digit , SUM(amt)
from dbo.crpt_ImbanganDuga_4_Vertical
where batch_Id='f8321864-1925-44c2-93dc-4244f62efa9c'
GROUP BY batch_Id , kod , chart_code , desc_text , group_1Digit , group_2Digit , group_3Digit
order by chart_code
anyway, this will give you one chart code only per batch_id. The minimum value of the chart code
SELECT batch_Id , kod , MIN(chart_code) , desc_text , group_1Digit , group_2Digit , group_3Digit , SUM(amt)
from dbo.crpt_ImbanganDuga_4_Vertical
where batch_Id='f8321864-1925-44c2-93dc-4244f62efa9c'
GROUP BY batch_Id , kod , desc_text , group_1Digit , group_2Digit , group_3Digit
order by chart_code