There are lot beginners in Java Spring they usually faces this kind of issues or errors, I will share here what error or issue I came across and how did I resolved it.
select * from ( select a.*, rownum as rn from table_name a where rownum <= 110 ) where rn > 100