|  | 
写错了
| Select a.custno, a.count, a.je, a.jf From
 (select rownum rowid,* from
 (select custno,count(sxje) count,sum(sxje) je,sum(it_xfjf) jf
 from cust_sp_rz
 where rqsj>='01-may-04' and rqsj<='10-oct-04'
 group by custno
 order by count desc) ) a
 Where a.rowid<100
 
 不能加orderby了,否则会出错!
 | 
 |