SQLServer
select top 2 * from User;
MySQL
select * from User limit 2;
Oracle
select * from (select rownum as r from User) User as user where user.r>50 and user.r<100;
DB2
select * from User fetch first 2 row only;