การใช้ SUM() กับ GROUP BY ฟังก์ชันรวม SUM() ร่วมกับ GROUP BY คำนวณผลรวมต่อกลุ่ม ตัวอย่าง create table DemoTable850(Id int, Price int); Query OK, 0 rows affected (0.54 sec) insert into DemoTable850 values(1,60); คำสั่ง SUM แยกตาม Id = 1 select Id, SUM(Price) from DemoTable850 where Id = 1; ผลล