日期:2014-05-17 浏览次数:21008 次
select tt.phonenum
  from ( 
        select AA.phonenum,
               sum(AA.charge) as all_charges
          from (       
                select phonenum,charge from A01
                union all
                select phonenum,charge from A02
                union all
                select phonenum,charge from A03
               )AA
         group by AA.phonenum
         order by 2 desc
       )tt
 where rownum <= 10;