3,497
社区成员
发帖
与我相关
我的任务
分享select * from
(
select animal,age,id ,row_number()over(partition by animal order by age desc) row_num
from zoon
)where row_num <=5;select animal,age,id,total from(
select animal,age,id,row_number() over(partition by animal order by id) total from zoon
) rn <= 5