50,528
社区成员
发帖
与我相关
我的任务
分享
select *
from (select t1.*
from (select t1.user_id, sum(t1.price) pc
from mytest t1
where t1.channel_type = 1
and t1._status = 0
and trunc(t1.create_time, 'y') = '2016' --视为date类型
group by t1.user_id) t1
order by t1.pc desc) t1
where rownum <= 10
--oracle