select top N-M+1 * from tablename where id not in (select top M-1 id from tablename order by id) order by id