SELECT A1.工号, A1.姓名, A1.工作, A2.完成数量, A2.作业日期
FROM A1 LEFT JOIN [SELECT * FROM A2 WHERE 作业日期=Date()]. AS B ON A1.工号=B.工号;
作者: zyp 时间: 2011-4-7 10:35
试试:
SELECT A1.工号, A1.姓名, A1.工作, A2.完成数量, A2.作业日期
FROM A1 LEFT OUTER JOIN (SELECT * FROM A2 WHERE 作业日期=Date()) B ON A1.工号=B.工号;