SELECT Sheet1.国家, Sheet1.ID, Sheet1.名称, Sheet1.受注NO, Sheet1.标示, nz([sheet1].[07/02/07])-nz([sheet2].[07/02/07])+nz([sheet1].[07/02/14])-nz([sheet2].[07/02/14])+nz([sheet1].[07/02/28])-nz([sheet2].[07/02/28]) AS 合计, nz([sheet1].[07/02/07])-nz([sheet2].[07/02/07]) AS [07/02/07], nz([sheet1].[07/02/14])-nz([sheet2].[07/02/14]) AS [07/02/14], nz([sheet1].[07/02/28])-nz([sheet2].[07/02/28]) AS [07/02/28]
FROM Sheet1 LEFT JOIN Sheet2 ON Sheet1.受注NO = Sheet2.受注NO
GROUP BY Sheet1.国家, Sheet1.ID, Sheet1.名称, Sheet1.受注NO, Sheet1.标示, nz([sheet1].[07/02/07])-nz([sheet2].[07/02/07])+nz([sheet1].[07/02/14])-nz([sheet2].[07/02/14])+nz([sheet1].[07/02/28])-nz([sheet2].[07/02/28]), nz([sheet1].[07/02/07])-nz([sheet2].[07/02/07]), nz([sheet1].[07/02/14])-nz([sheet2].[07/02/14]), nz([sheet1].[07/02/28])-nz([sheet2].[07/02/28]);