slow2812 > 12-12-16, 03:09 PM
slow2812 > 12-12-16, 05:52 PM
ongke0711 > 12-12-16, 07:51 PM
S_ELECT tblPhieuNhap.NgayNhap, tblPhieuNhap.spn, tblPhieuNhap.DienGiai, tblDanhMucHangHoa.TenHang, tblChiTietNhap.idHang, tblChiTietNhap.SLN, tblChiTietNhap.DGN, [SLN]*[DGN] AS ThanhTien,0 as No, [ThanhTien] AS Co
F_ROM tblDanhMucHangHoa I_NNER JOIN (tblPhieuNhap I_NNER JOIN tblChiTietNhap ON tblPhieuNhap.spn = tblChiTietNhap.spn) ON tblDanhMucHangHoa.idHang = tblChiTietNhap.idHang
U_NION ALL
S_ELECT tblPhieuChi.NgayChungTu, tblPhieuChi.SoChungTu, tblPhieuChi.DienGiai,"" , "" ,"" ,"" ,"",tblPhieuChi.SoTien,""
F_ROM tblPhieuChi;
slow2812 > 13-12-16, 01:32 PM
ongke0711 > 13-12-16, 01:49 PM
slow2812 > 13-12-16, 01:59 PM
(12-12-16, 07:51 PM)ongke0711 Đã viết: Bạn copy vào Query. Nhớ bỏ các dấu gạch dưới _ ở các từ khóa như SELECT, INNER... vì chế độ bảo mật của diễn đàn nên không giữ nguyên câu lệnh SQL được,
Mã PHP:S_ELECT tblPhieuNhap.NgayNhap, tblPhieuNhap.spn, tblPhieuNhap.DienGiai, tblDanhMucHangHoa.TenHang, tblChiTietNhap.idHang, tblChiTietNhap.SLN, tblChiTietNhap.DGN, [SLN]*[DGN] AS ThanhTien,0 as No, [ThanhTien] AS Co
F_ROM tblDanhMucHangHoa I_NNER JOIN (tblPhieuNhap I_NNER JOIN tblChiTietNhap ON tblPhieuNhap.spn = tblChiTietNhap.spn) ON tblDanhMucHangHoa.idHang = tblChiTietNhap.idHang
U_NION ALL
S_ELECT tblPhieuChi.NgayChungTu, tblPhieuChi.SoChungTu, tblPhieuChi.DienGiai,"" , "" ,"" ,"" ,"",tblPhieuChi.SoTien,""
F_ROM tblPhieuChi;
ongke0711 > 13-12-16, 02:26 PM
slow2812 > 13-12-16, 02:39 PM
slow2812 > 13-12-16, 04:58 PM
ongke0711 > 13-12-16, 05:56 PM