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