*第一个表和第二个表连接
select nvl(a.部门编号,b.部门编号) as 部门编号,;
nvl(a.姓名,b.姓名) as 姓名,;
nvl(a.出勤,0) as 出勤01,;
nvl(b.出勤,0) as 出勤02 ;
from sckq001 a;
full join sckq002 b ;
on a.姓名=b.姓名 into cursor t12
*连接的新表和第三个表连接
select nvl(a.部门编号,b.部门编号) as 部门编号,;
nvl(a.姓名,b.姓名) as 姓名,;
nvl(a.出勤01,0) as 出勤01,;
nvl(a.出勤02,0) as 出勤02,;
nvl(b.出勤,0) as 出勤03 ;
from t12 a;
full join sckq003 b ;
on a.姓名=b.姓名 into cursor t13
*连接的新表(1、2、3个表连接起来的)和第四个表连接
select nvl(a.部门编号,b.部门编号) as 部门编号,;
nvl(a.姓名,b.姓名) as 姓名,;
nvl(a.出勤01,0) as 出勤01,;
nvl(a.出勤02,0) as 出勤02,;
nvl(a.出勤03,0) as 出勤03,;
nvl(b.出勤,0) as 出勤04 ;
from t13 a;
full join sckq004 b ;
on a.姓名=b.姓名
....