longkd_bvct@yahoo.com.vn > 28-05-19, 11:26 AM
Xuân Thanh > 28-05-19, 12:53 PM
SELECT Bang3.TenHang, Bang1.[SoLuongBanDau] AS BanDau, IIf([SoLuongSuDung]>0,[SoLuongSuDung],0) AS SuDung, [BanDau]-[SuDung] AS ConLai
FROM (Bang3 LEFT JOIN Bang1 ON Bang3.TenHang = Bang1.TenHang) LEFT JOIN Bang2 ON Bang3.TenHang = Bang2.TenHang;