nam8384 > 22-06-17, 01:15 PM
ongke0711 > 22-06-17, 01:46 PM
SELECT Mid([Ma],InStr([Ma],"/")+1,2) AS Ma2, Sum(Table1.SoLuong) AS SoLuong
FROM Table1
GROUP BY Mid([Ma],InStr([Ma],"/")+1,2);
nam8384 > 22-06-17, 04:13 PM
thdanh > 10-06-18, 02:41 PM
tracanhtam > 08-09-19, 09:40 AM
(22-06-17, 01:46 PM)ongke0711 Đã viết: Bạn copy câu lệnh SQL dưới đay dán vào khung thiết kế query (SQL View).
Mã PHP:SELECT Mid([Ma],InStr([Ma],"/")+1,2) AS Ma2, Sum(Table1.SoLuong) AS SoLuong
FROM Table1
GROUP BY Mid([Ma],InStr([Ma],"/")+1,2);
ongke0711 > 08-09-19, 02:01 PM
SELECT Mid([Ma],InStr([Ma],"/")+1,2) AS Ma2, Sum(Table1.SoLuong) AS SoLuong
FROM Table1
GROUP BY Mid([Ma],InStr([Ma],"/")+1,2)
HAVING [Thang] = " & Me.cboThang