把(+)去掉, +是oracle里的外连接用的

解决方案 »

  1.   

    select a.auto_browse_num ,sum(sale) from (select a.[autobrand],a.[autotype],b.[auto_browse_num] from AutoInfo a left join AutoPrice b on a.Autoid=b.AutoID)c group by a.auto_browse_num
      

  2.   

    select auto_browse_num ,sum(sale) from 
    (
    select a.auto_browse_num ,a.[autobrand],a.[autotype],b.[auto_browse_num],a.sale from AutoInfo a 
    left join AutoPrice b on a.Autoid=b.AutoID
    group by a.auto_browse_num
    )M
      

  3.   

    SQL 没这样的写法吧!
      

  4.   

    select auto_browse_num ,sum(sale) from 
    (
    select a.auto_browse_num ,a.[autobrand],a.[autotype],b.[auto_browse_num],a.sale from AutoInfo a 
    left join AutoPrice b on a.Autoid=b.AutoID
    group by a.auto_browse_num
    )M 这个是正确的
      

  5.   

    select auto_browse_num ,sum(sale) from (select a.[autobrand],a.[autotype],b.[auto_browse_num] from AutoInfo a left join AutoPrice b on a.Autoid=b.AutoID) group by auto_browse_num