sorryikillyo > 30-05-13, 12:51 PM
Xuân Thanh > 30-05-13, 03:41 PM
SELECT tblLuongEnd.MaNV, tblLuongEnd.MaBP, tblLuongEnd.Nam, tblLuongEnd.Thang, tblLuongEnd.Ky, tblLuongEnd.DiTreN, tblLuongEnd.VeSomN, tblLuongEnd.ThemGioN, tblLuongEnd.NgayCong, tblLuongEnd.TGEnd, tblLuongEnd.LuongNgay, tblLuongEnd.LuongTG, tblLuongEnd.TienDem, tblLuongEnd.PCChuyenCan, tblLuongEnd.PCCom, IIf([SoTienVP]>0,[SoTienVP],0) AS ViPham, IIf([Ky1]>0 And [Ky2]>0,[Ky1]+[Ky2],IIf([Ky1]>0 And [Ky2]=0,[Ky1],IIf([Ky1]=0 And [Ky2]>0,[Ky2],0))) AS PhuCap
FROM (tblLuongEnd LEFT JOIN tblViPham ON tblLuongEnd.MaNV = tblViPham.MaNV) LEFT JOIN tblPCKhac ON tblLuongEnd.MaNV = tblPCKhac.MaNV;
sorryikillyo > 30-05-13, 04:33 PM
sorryikillyo > 30-05-13, 05:09 PM
sorryikillyo > 30-05-13, 05:31 PM