select *
  from tab
 where exists (select 1
          from (select distinct a from tab order by a) t
         where rownum <= 100
           and t.a = tab.a)
此意?