select * from table where rownum<=30
minus
select * from table where rownum<=21;
Other than the above ans:
Using sequence generator, expression and filter transformation
OR
Using mapping variable initialised to zero, expression and filter transformation.