你oracle什么版本的?
oracle的full join有几个bug的.9.2.0.4.0后基本解决了。升级吧

解决方案 »

  1.   

    呵呵,9.2.0.1.0对FULL JOIN 存在BUG
    升级到至少9.2.0.3.0以上就可以了
      

  2.   

    9.2.0.3.0都解了的问题,10g当然没问题了。好像记得这个bug是在子查询中不能有group by
      

  3.   

    不知道是语句太复杂还是什么,
      from money_book mb,customer cu
           *
    ERROR 位于第 12 行:
    ORA-00600: internal error code, arguments: [qcscpqbc1], [2], [0], [], [], [], [], []在9.2.0.1.0
    竟然会出错
    10g 中无问题
      

  4.   

    跟视图有关吧。现在我做了个测试,新建两表a,b
    select * from a
            NO      VALUE 
    ---------- ---------- 
             7        200已选择 1 行。=================================select * from b
            NO      VALUE 
    ---------- ---------- 
             2       -480已选择 1 行。======================================
    select 
    NVL(a.no,b.no) no ,
    NVL(a.value,b.value) value
     from
    (select a.no,sum(a.value) value from a group by a.no) a 
    full join 
    (select b.no,sum(b.value) value from b group by b.no) b 
    on a.no=b.no        NO      VALUE
    ---------- ----------
             7        200
             2       -480已选择2行。正常