select name as 姓名,a.degree as 初一,b.degree as 初二
from 初一成绩表 as a
right join 初二成绩表 as b on a.name=b.name
楼下说的有道理,已经更改,既然初二成绩表人员是全的,那么用right join就OK了
楼上,ACCESS中没有全连接吧
强制查出所有后再左连接吧
SELECT n.姓名,O.成绩 as 初一 ,T.成绩 as 初二
FROM ((select distinct 姓名 from (select 姓名 from 初一成绩 union select 姓名 from 初二成绩)) AS N LEFT JOIN 初一成绩 AS O ON N.姓名 = O.姓名) LEFT JOIN 初二成绩 AS T ON N.姓名 = T.姓名;