SELECT BAID, [From], [To], SUM (TotalMessage) as 'TotalMess'," +
"SUM (NumMessMiss) as 'TotalMessMiss'
FROM[dbo].[tblTyLeTruotTinNhan]
GROUP BY BAID, [From], [To]
SELECT BAID, [From], [To], SUM (TotalMessage) as 'TotalMess'," +
"SUM (NumMessMiss) as 'TotalMessMiss'
FROM[dbo].[tblTyLeTruotTinNhan]
GROUP BY BAID, [From], [To]
Bookmarks