select   C.部门,   C.工号,   C.姓名,   nvl(B.住址,   '未知'),   nvl(A.学历,   '未知')   
  from   A,   B,   C   
  where   C.部门   =   '信息科技部'   
        and   C.工号   =   B.工号   (+)   
        and   C.工号   =   A.工号   (+)   
  ;

解决方案 »

  1.   

    外连接(Oracle Outer Join)
    SQL>SELECT dept.deptno,dname,SUM(sal) “MONTHLY SALARY"
             FROM emp,dept
            WHERE emp.deptno(+)=dept.deptno
           GROUP BY dept.deptno,dname
           ORDER BY dept.deptno    
     以dept中的deptno为基准,
     emp中无此deptno的返回空值。
      

  2.   

    比如
    a.id=b.id(+)  左外连接
    a.id(+)=b.id  右外连接
      

  3.   

    外联结,outer join,联合查询时,哪个表需要返回null(未匹配时,仍然作为一条记录返回),就加在哪个表后面。是oracle的标记,不喜欢的话,可以用 outer join。